mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
When enabling rules prefixed with '# ' consume the extra space (#4129)
This commit is contained in:
parent
92f2163cf3
commit
aeb6d2b0c3
@ -61,7 +61,7 @@ if __name__ == '__main__':
|
||||
and rule_info_record['metadata']['sid'] in rule_updates:
|
||||
# search last comment marker
|
||||
for i in range(len(rule_info_record['rule'])):
|
||||
if rule[i] != '#':
|
||||
if rule[i] not in ['#', ' ']:
|
||||
break
|
||||
|
||||
# generate altered rule
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user