montymahato/lua-pattern-tester

website "crash" with a specific input

lil-evil opened this issue · 1 comments

Describe the bug
Using a specific pattern with another specific text seems to crash the page. as soon as the two are in the input box, the site's page goes blank and every text/input box/image.. disappear

To Reproduce
Steps to reproduce the behavior:

  1. Go to pattern input
  2. set to "^[%+%-]?nan$"
  3. Go to the text input
  4. set to "+nan"

Expected behavior
to not goes blank and actually mark "+nan" as matched

Desktop (please complete the following information):

  • OS: Debian 12
  • Browser: Firefox (not esr)
  • Version: 121.0

same with using "(" as a escaped character.
pattern: (%()
text: (