Class: JsRegex::Converter::TypeConverter

Inherits:
Base
  • Object
show all
Defined in:
lib/js_regex/converter/type_converter.rb

Overview

Template class implementation.

Constant Summary collapse

TYPES_SHARED_BY_RUBY_AND_JS =
%i[
  digit
  nondigit
  word
  nonword
  space
  nonspace
].freeze
HEX_EXPANSION =
'[0-9A-Fa-f]'
NONHEX_EXPANSION =
'[^0-9A-Fa-f]'
LINEBREAK_EXPANSION =
'(?:\r\n|\r|\n)'

Method Summary

Methods inherited from Base

#convert