We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a6e13 commit 507fd38Copy full SHA for 507fd38
src/etc/htmldocck.py
@@ -564,10 +564,14 @@ def check_command(c, cache):
564
# hasraw/matchesraw <path> <pat> = string test
565
elif len(c.args) == 2 and "raw" in c.cmd:
566
cerr = "`PATTERN` did not match"
567
+ if c.negated:
568
+ cerr = "`PATTERN` unexpectedly matched"
569
ret = check_string(cache.get_file(c.args[0]), c.args[1], regexp)
570
# has/matches <path> <pat> <match> = XML tree test
571
elif len(c.args) == 3 and "raw" not in c.cmd:
572
cerr = "`XPATH PATTERN` did not match"
573
574
+ cerr = "`XPATH PATTERN` unexpectedly matched"
575
ret = get_nb_matching_elements(cache, c, regexp, True) != 0
576
else:
577
raise InvalidCheck("Invalid number of {} arguments".format(c.cmd))
0 commit comments