mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-30 00:30:20 -05: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)
|
||||
if ans is None:
|
||||
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