Sha256: fd9065a29ef8ee6520ff724a3183148958848432f7224ae4557e0829f6876fcb

Contents?: true

Size: 345 Bytes

Versions: 27

Compression:

Stored size: 345 Bytes

Contents

module WebSocket
  class Driver
    # 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

27 entries across 27 versions & 2 rubygems

Version Path
websocket-driver-0.6.3-java lib/websocket/driver/utf8_match.rb
websocket-driver-0.6.3 lib/websocket/driver/utf8_match.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/websocket-driver-0.5.4/lib/websocket/driver/utf8_match.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/websocket-driver-0.5.4/lib/websocket/driver/utf8_match.rb
websocket-driver-0.6.2-java lib/websocket/driver/utf8_match.rb
websocket-driver-0.6.2 lib/websocket/driver/utf8_match.rb
websocket-driver-0.6.1-java lib/websocket/driver/utf8_match.rb
websocket-driver-0.6.1 lib/websocket/driver/utf8_match.rb
websocket-driver-0.6.0-java lib/websocket/driver/utf8_match.rb
websocket-driver-0.6.0 lib/websocket/driver/utf8_match.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/websocket-driver-0.5.4/lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.4-java lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.4 lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.3-java lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.3 lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.2-java lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.2 lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.1-java lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.1 lib/websocket/driver/utf8_match.rb
websocket-driver-0.5.0 lib/websocket/driver/utf8_match.rb