firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.28k stars 199 forks source link

Broken Debugger #2386

Open BrainyGenius opened 17 hours ago

BrainyGenius commented 17 hours ago

Bug Description

Regex Debugger displays outdated data.

Reproduction steps

  1. Make a complicated expression like this: /^\b(-|+)?((.|,)?\d+((.|,)?\d+|\d+((.|,)?)))\b/gi
  2. Type something in to be matched
  3. Open the debugger
  4. Change both the expression and the string to be matched

Expected Outcome

For the Debugger to show the new data matching steps

Browser

Include browser name and version Google Chrome 130.0.6723.101 (Official Build) (64-bit)

OS

Include OS name and version ChromeOS 130.0.6723.101 (Official Build) (64-bit)

working-name commented 17 hours ago

Hi @BrainyGenius,

I have .117 but cannot reproduce this.

Also, not sure I follow the repro steps since you can't actually change the expression while the debugger is on, nor can you start the debugger when there's errors in the regex, like the |+)? part where + is treated as match 1 or more of the previous token, but the previous token is also a metacharacter which means OR.

Would you mind double checking the steps?