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 37a21e2 commit 261e1a8Copy full SHA for 261e1a8
lib/coderay/scanners/java_script.rb
@@ -46,7 +46,7 @@ class JavaScript < Scanner
46
"'" => /[^\\']+/,
47
'"' => /[^\\"]+/,
48
'/' => %r{ (?: [^\\/\[]+ | \[ ([^\]\\]+ | \\.)* \]? )+ }mx,
49
- } # :nodoc:
+ }.freeze # :nodoc:
50
KEY_CHECK_PATTERN = {
51
"'" => / (?> [^\\']* (?: \\. [^\\']* )* ) ' \s* : /mx,
52
'"' => / (?> [^\\"]* (?: \\. [^\\"]* )* ) " \s* : /mx,
0 commit comments