When enabling rules prefixed with '# ' consume the extra space (#4129)

This commit is contained in:
Tra5is 2020-05-24 23:57:05 -07:00 committed by GitHub
parent 92f2163cf3
commit aeb6d2b0c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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