Sha256: e179fdaf9adcb4c9a5a7638577ed3ff9876196f9d62145cc2bc9b1a28f70ab43

Contents?: true

Size: 353 Bytes

Versions: 10

Compression:

Stored size: 353 Bytes

Contents

module Faye
  class WebSocket
    
    # http://www.w3.org/International/questions/qa-forms-utf-8.en.php
    UTF8_MATCH = /^([\x00-\x7F]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})*$/
    
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
faye-websocket-0.4.6-java lib/faye/websocket/utf8_match.rb
faye-websocket-0.4.6 lib/faye/websocket/utf8_match.rb
faye-websocket-0.4.5-java lib/faye/websocket/utf8_match.rb
faye-websocket-0.4.5 lib/faye/websocket/utf8_match.rb
_bushido-faye-websocket-0.4.4 lib/faye/websocket/utf8_match.rb
faye-websocket-0.4.4-java lib/faye/websocket/utf8_match.rb
faye-websocket-0.4.4 lib/faye/websocket/utf8_match.rb
faye-websocket-0.4.3 lib/faye/websocket/utf8_match.rb
faye-websocket-0.4.2 lib/faye/websocket/utf8_match.rb
faye-websocket-0.4.1 lib/faye/websocket/utf8_match.rb