Skip to content

Commit

Permalink
ci: fix regex in guideline_check.py
Browse files Browse the repository at this point in the history
Also match _ in file names.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and galak committed May 3, 2021
1 parent 737dd62 commit b669f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci/guideline_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


def parse_coccinelle(contents: str, violations: dict):
reg = re.compile("([a-zA-Z0-9/]*\\.[ch]:[0-9]*)(:[0-9\\-]*: )(.*)")
reg = re.compile("([a-zA-Z0-9_/]*\\.[ch]:[0-9]*)(:[0-9\\-]*: )(.*)")
for line in contents.split("\n"):
r = reg.match(line)
if r:
Expand Down

0 comments on commit b669f0c

Please sign in to comment.