mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bd0e2d8d06
commit
b9cf208a5e
@ -16,4 +16,4 @@ def compile_regular_expression(text, flags=REGEX_FLAGS):
|
|||||||
ans = regex_cache.get(key)
|
ans = regex_cache.get(key)
|
||||||
if ans is None:
|
if ans is None:
|
||||||
ans = regex_cache[key] = regex.compile(text, flags=flags)
|
ans = regex_cache[key] = regex.compile(text, flags=flags)
|
||||||
return regex.compile(text, flags=flags)
|
return ans
|
||||||
|
Loading…
x
Reference in New Issue
Block a user