Skip to content

Commit e519ed2

Browse files
committed
Another patch related to the #1655
1 parent 8b01996 commit e519ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/techniques/error/use.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
9494
if retVal is None or partialValue:
9595
try:
9696
while True:
97-
check = "%s(?P<result>.*?)%s" % (kb.chars.start, kb.chars.stop)
97+
check = r"%s(?P<result>.*?)%s" % (kb.chars.start, kb.chars.stop)
9898
trimcheck = r"%s(?P<result>[^<\n]*)" % (kb.chars.start)
9999

100100
if field:
@@ -153,7 +153,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
153153
logger.warn(warnMsg)
154154

155155
if not kb.testMode:
156-
check = "(?P<result>.*?)%s" % kb.chars.stop[:2]
156+
check = r"(?P<result>[^<>\n]*?)%s" % kb.chars.stop[:2]
157157
output = extractRegexResult(check, trimmed, re.IGNORECASE)
158158

159159
if not output:

0 commit comments

Comments
 (0)