-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Current behavior
While using the Regular Expression mode, an optional capture group that does not capture will crash the client.
Expected behavior
To not crash the client
Environment
- string-is version: Unknown
- Share link: Unable to find
Steps to replicate:
- Put
Hello(World)?$in box 1. Paste or type a regex here to debug it 👇 - Put
Helloin 3. Regular Expression matches 👇
Console output:
TypeError: Cannot read properties of undefined (reading 'toString')
at F ([[...converter]]-d7e…8f2b8a82c.js:1:2149)
at oo (framework-c7a52813f633e983.js:1:59417)
at Wo (framework-c7a52813f633e983.js:1:68984)
at Ku (framework-c7a52813f633e983.js:1:112708)
at Li (framework-c7a52813f633e983.js:1:98958)
at Ni (framework-c7a52813f633e983.js:1:98886)
at Pi (framework-c7a52813f633e983.js:1:98749)
at bi (framework-c7a52813f633e983.js:1:95715)
at framework-c7a52813f633e983.js:1:45209
at t.unstable_runWithPriority (framework-c7a52813f633e983.js:1:129355)
at Ql (framework-c7a52813f633e983.js:1:44986)
at Yl (framework-c7a52813f633e983.js:1:45154)
at Kl (framework-c7a52813f633e983.js:1:45089)
at framework-c7a52813f633e983.js:1:116405
at Fe (framework-c7a52813f633e983.js:1:116410)
at Ae (framework-c7a52813f633e983.js:1:15439)
Q @ main-2843674d9877a5ec.js:1
fn @ main-2843674d9877a5ec.js:1
value @ main-2843674d9877a5ec.js:1
a.componentDidCatch.n.callback @ framework-c7a52813f633e983.js:1
ha @ framework-c7a52813f633e983.js:1
gu @ framework-c7a52813f633e983.js:1
Ri @ framework-c7a52813f633e983.js:1
t.unstable_runWithPriority @ framework-c7a52813f633e983.js:1
Ql @ framework-c7a52813f633e983.js:1
Oi @ framework-c7a52813f633e983.js:1
bi @ framework-c7a52813f633e983.js:1
(anonymous) @ framework-c7a52813f633e983.js:1
t.unstable_runWithPriority @ framework-c7a52813f633e983.js:1
Ql @ framework-c7a52813f633e983.js:1
Yl @ framework-c7a52813f633e983.js:1
Kl @ framework-c7a52813f633e983.js:1
(anonymous) @ framework-c7a52813f633e983.js:1
Fe @ framework-c7a52813f633e983.js:1
Ae @ framework-c7a52813f633e983.js:1
(anonymous) @ framework-c7a52813f633e983.js:1
Fr @ framework-c7a52813f633e983.js:1
Jt @ framework-c7a52813f633e983.js:1
Zt @ framework-c7a52813f633e983.js:1
t.unstable_runWithPriority @ framework-c7a52813f633e983.js:1
Ql @ framework-c7a52813f633e983.js:1
Me @ framework-c7a52813f633e983.js:1
Xt @ framework-c7a52813f633e983.js:1