allowing inner slashes in regexes
This commit is contained in:
parent
4e1e119f58
commit
1a8311b9d0
|
@ -21,6 +21,8 @@ spaced_out_multiline_object: {
|
|||
|
||||
list: [1, 2, 3, 4]
|
||||
|
||||
regex: /match[ing](every|thing|\/)/gi
|
||||
|
||||
three: new Idea()
|
||||
|
||||
inner_obj: {
|
||||
|
|
|
@ -18,7 +18,7 @@ class Lexer
|
|||
NEWLINE = /\A([\r\n]+)/
|
||||
COMMENT = /\A(#[^\r\n]*)/
|
||||
CODE = /\A(=>)/
|
||||
REGEX = /\A(\/(.*?)\/[imgy]{0,4})/
|
||||
REGEX = /\A(\/(.*?)[^\\]\/[imgy]{0,4})/
|
||||
|
||||
JS_CLEANER = /(\A`|`\Z)/
|
||||
MULTILINER = /[\r\n]/
|
||||
|
|
Loading…
Reference in New Issue