Minor update related to the Issue #993

This commit is contained in:
Miroslav Stampar 2014-12-10 06:37:17 +01:00
parent a7b21a2f62
commit d700e50b36

View File

@ -134,6 +134,12 @@ def _oneShotErrorUse(expression, field=None):
check = "(?P<result>.*?)%s" % kb.chars.stop[:2] check = "(?P<result>.*?)%s" % kb.chars.stop[:2]
output = extractRegexResult(check, trimmed, re.IGNORECASE) output = extractRegexResult(check, trimmed, re.IGNORECASE)
if not output:
check = "(?P<result>[^\s<>'\"]+)"
output = extractRegexResult(check, trimmed, re.IGNORECASE)
else:
output = output.rstrip()
if any(Backend.isDbms(dbms) for dbms in (DBMS.MYSQL, DBMS.MSSQL)): if any(Backend.isDbms(dbms) for dbms in (DBMS.MYSQL, DBMS.MSSQL)):
if offset == 1: if offset == 1:
retVal = output retVal = output