Skip to content

Commit d3c25e0

Browse files
committed
Fix 'xpath' is not a valid MatcherType
1 parent 4f6a378 commit d3c25e0

File tree

1 file changed

+2
-3
lines changed
  • pocsuite3/lib/yaml/nuclei/operators/matchers

1 file changed

+2
-3
lines changed

pocsuite3/lib/yaml/nuclei/operators/matchers/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def match_dsl(matcher: Matcher, data: dict) -> bool:
187187
return True
188188
return False
189189

190+
190191
def match_xpath(matcher: Matcher, body: str) -> (bool, list):
191192
"""Matches xpath check against a body.
192193
"""
@@ -221,6 +222,4 @@ def match_xpath(matcher: Matcher, body: str) -> (bool, list):
221222
if len(matched_xpaths) > 0 and matcher.match_all:
222223
return True, matched_xpaths
223224

224-
return False, []
225-
226-
225+
return False, []

0 commit comments

Comments
 (0)