From 156d24203f00b4cea08e6a7e784361d7b922c551 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 31 Mar 2011 17:16:26 +0000 Subject: [PATCH] speed optimization --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index dc8fe510a..60b8153ce 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1956,7 +1956,7 @@ def extractRegexResult(regex, content, flags=0): retVal = None if regex and content and '?P' in regex: - match = re.search(regex, content, flags) + match = getCompiledRegex(regex, flags).search(content) if match: retVal = match.group("result")