diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-21 20:19:57 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-21 20:19:57 +0200 |
commit | af04107b8b370452a17fa54e8ea0e8adc8b376b0 (patch) | |
tree | 0fcb723fe720eb18aa80d0881377643e57fdb2f7 /lib/coderay/scanners | |
parent | 368e053880819edc74fdcef38f38b5fd4806a3f4 (diff) | |
download | coderay-af04107b8b370452a17fa54e8ea0e8adc8b376b0.tar.gz |
no attack vector, there are only 4 cases
Diffstat (limited to 'lib/coderay/scanners')
-rw-r--r-- | lib/coderay/scanners/python.rb | 2 |
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: } |