summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2019-11-24 02:12:27 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2019-11-24 02:12:27 +0100
commit37a21e2314d464dc7c1d2eb3a4542ae8ab984d3f (patch)
treefabbfee7915b6677d84e033261550f5d5186631e
parent5233abf74f43a4b36383c2ce00a5e6c0d67e6503 (diff)
downloadcoderay-37a21e2314d464dc7c1d2eb3a4542ae8ab984d3f.tar.gz
provoke RubyCop
-rw-r--r--lib/coderay/scanners/java_script.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/java_script.rb b/lib/coderay/scanners/java_script.rb
index 87686ac..bb0d35b 100644
--- a/lib/coderay/scanners/java_script.rb
+++ b/lib/coderay/scanners/java_script.rb
@@ -42,7 +42,7 @@ module Scanners
ESCAPE = / [bfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc:
UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc:
REGEXP_ESCAPE = / [bBdDsSwW] /x # :nodoc:
- STRING_CONTENT_PATTERN = {
+ STRING_CONTENT_PATTERN = {
"'" => /[^\\']+/,
'"' => /[^\\"]+/,
'/' => %r{ (?: [^\\/\[]+ | \[ ([^\]\\]+ | \\.)* \]? )+ }mx,