Merge pull request #1687 from pre-commit/simple_rev_line_re

remove DOTALL on REV_LINE_RE
This commit is contained in:
Anthony Sottile 2020-11-06 16:32:46 -08:00 committed by GitHub
commit 1494faee1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,9 +84,7 @@ def _check_hooks_still_exist_at_rev(
)
REV_LINE_RE = re.compile(
r'^(\s+)rev:(\s*)([\'"]?)([^\s#]+)(.*)(\r?\n)$', re.DOTALL,
)
REV_LINE_RE = re.compile(r'^(\s+)rev:(\s*)([\'"]?)([^\s#]+)(.*)(\r?\n)$')
def _original_lines(