Skip to content

Commit 6d1204a

Browse files
committed
Use re.MULTILINE for test pattern (codingjoe#4)
As a result, in a pattern ^ and $ are now matching start and end of the line, not just start and end of the string.
1 parent f985128 commit 6d1204a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

relint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def load_config(path):
5353
filename = list(filename)
5454
yield Test(
5555
name=test['name'],
56-
pattern=re.compile(test['pattern']),
56+
pattern=re.compile(test['pattern'], re.MULTILINE),
5757
hint=test.get('hint'),
5858
filename=filename,
5959
error=test.get('error', True)

0 commit comments

Comments
 (0)