This commit is contained in:
Kovid Goyal 2017-04-20 08:17:15 +05:30
parent bd0e2d8d06
commit b9cf208a5e

View File

@ -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