montymahato / lua-pattern-tester

A live web-based tool for testing, matching and debugging Lua patterns against your input.

Home Page:https://montymahato.github.io/lua-pattern-tester/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

website "crash" with a specific input

lil-evil opened this issue · 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: (