misra.py: Fix loading of rule texts

This commit is contained in:
Daniel Marjamäki 2017-04-17 08:35:17 +02:00
parent 4f64e67298
commit d6570b01e1
1 changed files with 1 additions and 1 deletions

View File

@ -890,7 +890,7 @@ def loadRuleTexts(filename):
res = re.match(r'^[ ]*(Advisory|Required|Mandatory)$', line)
if res:
continue
res = re.match(r'^[ ]*([A-Z].*)', line)
res = re.match(r'^[ ]*([#A-Z].*)', line)
if res:
global ruleTexts
ruleTexts[num1*100+num2] = res.group(1)