summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-07-21 20:19:57 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-07-21 20:19:57 +0200
commitaf04107b8b370452a17fa54e8ea0e8adc8b376b0 (patch)
tree0fcb723fe720eb18aa80d0881377643e57fdb2f7
parent368e053880819edc74fdcef38f38b5fd4806a3f4 (diff)
downloadcoderay-af04107b8b370452a17fa54e8ea0e8adc8b376b0.tar.gz
no attack vector, there are only 4 cases
-rw-r--r--lib/coderay/scanners/python.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/coderay/scanners/python.rb b/lib/coderay/scanners/python.rb
index 23630f9..05e1f5f 100644
--- a/lib/coderay/scanners/python.rb
+++ b/lib/coderay/scanners/python.rb
@@ -75,12 +75,10 @@ module Scanners
<<=? | >>=? | [<>=]=? | != # comparison and assignment
/x # :nodoc:
- # FIXME: cache attack
STRING_DELIMITER_REGEXP = Hash.new { |h, delimiter|
h[delimiter] = Regexp.union delimiter # :nodoc:
}
- # FIXME: cache attack
STRING_CONTENT_REGEXP = Hash.new { |h, delimiter|
h[delimiter] = / [^\\\n]+? (?= \\ | $ | #{Regexp.escape(delimiter)} ) /x # :nodoc:
}