Skip to content

Commit

Permalink
Merge pull request #87 from PolyPhyHub/Abhinavcode13-patch-1
Browse files Browse the repository at this point in the history
Removed re.MULTILINE flag from the regex pattern
  • Loading branch information
pjflux2001 authored May 21, 2024
2 parents acef0b3 + e1327f5 commit 70e3e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/pre_commit_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def check_python_header(file_path):

with open(file_path, 'r') as file:
content = file.read()
if not re.match(expected_header, content, re.MULTILINE):
if not re.match(expected_header, content):
print(f"Error in {file_path}: \
Python file does not have the expected header format.")
sys.exit(1)
Expand Down

0 comments on commit 70e3e04

Please sign in to comment.