Skip to content

Commit

Permalink
Fix 'xpath' is not a valid MatcherType
Browse files Browse the repository at this point in the history
  • Loading branch information
xixixiba committed Mar 14, 2024
1 parent 4f6a378 commit d3c25e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pocsuite3/lib/yaml/nuclei/operators/matchers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def match_dsl(matcher: Matcher, data: dict) -> bool:
return True
return False


def match_xpath(matcher: Matcher, body: str) -> (bool, list):
"""Matches xpath check against a body.
"""
Expand Down Expand Up @@ -221,6 +222,4 @@ def match_xpath(matcher: Matcher, body: str) -> (bool, list):
if len(matched_xpaths) > 0 and matcher.match_all:
return True, matched_xpaths

return False, []


return False, []

0 comments on commit d3c25e0

Please sign in to comment.