mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
updated files names
This commit is contained in:
parent
41f01dd70a
commit
ad0f5863ed
26 changed files with 0 additions and 0 deletions
|
|
@ -1,11 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
|
||||
|
||||
def matches_any_regexp(string, regexp_list):
|
||||
"""Checks if string matches any of regexp in regexp_list."""
|
||||
for regexp in regexp_list:
|
||||
pattern = re.compile(regexp)
|
||||
if pattern.match(string):
|
||||
return True
|
||||
return False
|
||||
Loading…
Add table
Add a link
Reference in a new issue