Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64d57ba

Browse files
committed
remove DOTALL on REV_LINE_RE
1 parent c972205 commit 64d57ba

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pre_commit/commands/autoupdate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ def _check_hooks_still_exist_at_rev(
8484
)
8585

8686

87-
REV_LINE_RE = re.compile(
88-
r'^(\s+)rev:(\s*)([\'"]?)([^\s#]+)(.*)(\r?\n)$', re.DOTALL,
89-
)
87+
REV_LINE_RE = re.compile(r'^(\s+)rev:(\s*)([\'"]?)([^\s#]+)(.*)(\r?\n)$')
9088

9189

9290
def _original_lines(

0 commit comments

Comments
 (0)