8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5233abf commit 37a21e2Copy full SHA for 37a21e2
lib/coderay/scanners/java_script.rb
@@ -42,7 +42,7 @@ class JavaScript < Scanner
42
ESCAPE = / [bfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc:
43
UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc:
44
REGEXP_ESCAPE = / [bBdDsSwW] /x # :nodoc:
45
- STRING_CONTENT_PATTERN = {
+ STRING_CONTENT_PATTERN = {
46
"'" => /[^\\']+/,
47
'"' => /[^\\"]+/,
48
'/' => %r{ (?: [^\\/\[]+ | \[ ([^\]\\]+ | \\.)* \]? )+ }mx,
0 commit comments