Skip to content

Commit

Permalink
Merge pull request #266 from darkMoon1973/fix-comment-regex
Browse files Browse the repository at this point in the history
fix html comment regex error
  • Loading branch information
s0md3v authored Oct 18, 2019
2 parents 470f138 + 339342e commit 18c31c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/htmlParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def htmlParser(response, encoding):
environment_details[thisPosition] = {}
environment_details[thisPosition]['details'] = {}
if len(position_and_context) < reflections:
comment_context = re.finditer(r'<!--(?![.\s\S]*-->)[.\s\S]*(%s)[.\s\S]*?-->' % xsschecker, response)
comment_context = re.finditer(r'<!--[\s\S]*?(%s)[\s\S]*?-->' % xsschecker, response)
for occurence in comment_context:
thisPosition = occurence.start(1)
position_and_context[thisPosition] = 'comment'
Expand Down

0 comments on commit 18c31c3

Please sign in to comment.