Show More
@@ -459,6 +459,8 b' def _matcher(canonroot, cwd, names, inc,' | |||||
459 | return |
|
459 | return | |
460 | try: |
|
460 | try: | |
461 | pat = '(?:%s)' % '|'.join([regex(k, p, tail) for (k, p) in pats]) |
|
461 | pat = '(?:%s)' % '|'.join([regex(k, p, tail) for (k, p) in pats]) | |
|
462 | if len(pat) > 20000: | |||
|
463 | raise OverflowError() | |||
462 | return re.compile(pat).match |
|
464 | return re.compile(pat).match | |
463 | except OverflowError: |
|
465 | except OverflowError: | |
464 | # We're using a Python with a tiny regex engine and we |
|
466 | # We're using a Python with a tiny regex engine and we |
General Comments 0
You need to be logged in to leave comments.
Login now