mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Another try to fix #1013
Properly changed the string and file referenced to handle single quotes properly inside pcre greps.
This commit is contained in:
parent
5590fc7a53
commit
5977b1125b
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ xfailif_broken_deep_listdir = pytest.mark.xfail(
|
|||
|
||||
|
||||
def platform_supports_pcre():
|
||||
output = cmd_output(GREP, '-P', "name=Don't", 'CHANGELOG.md', retcode=None)
|
||||
output = cmd_output(GREP, '-P', "Don't", 'CHANGELOG.md', retcode=None)
|
||||
return output[0] == 0 and "name='pre_commit'," in output[1]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue