Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
ignore comments when processing lines
Browse files Browse the repository at this point in the history
  • Loading branch information
lehanhua committed Jan 13, 2017
1 parent c357416 commit 66a45a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions detection/pattern/regexruleengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def _process_ruleset(self, all_lines, repo_patch, ruleset, run_tests=False, cust
return_actions = {"actions":[],"logs":[], "matches":[]}
if if_conditions:
for line in all_lines:
line = line.strip()
if line.startswith("//"):
continue
if_condition_met = True
matches = []
for if_condition in if_conditions:
Expand Down

0 comments on commit 66a45a3

Please sign in to comment.