Closed Smashman closed 4 years ago
I have come up with another approach, by changing \b(2|two)
to ((^|[^+-]\b)2|\btwo)
. Thus, it now only checks for the + and - signs, but that should be enough, because there should be little other reason why you use a "2" in the description or name of an attack.
I'm closing this commit now, but be free to open it if you think of a better way this can (should) be handled.
I'm pretty sure I tested it and it worked. 🤔
All I get is the error "SyntaxError: invalid quantifier", using the latest version of Adobe Acrobat Pro DC:
Thank you for the suggested edit, but unfortunately AcroJS doesn't support lookbehinds for regular expressions (
?<!
and?<=
).