Closed MBM1607 closed 1 year ago
I would be willing to take this up, but I couldn't find the js conversion tool source code.
Hello!
As far as I know this is not a feature implemented by the javascript regex engine (although there are workarounds). Are you proposing this as a new, site-only feature?
Hi, I was proposing that the generator should also generate the relevant replacer function.
Got it 👍, so that's a feature request but it's external to javascript's regex implementation aka it doesn't know about \U
yet.
If you use the JS flavor it will show that this token is unsupported in that flavor.
The code generator does not do any conversions.
Bug Description
The code generator for javascript creates faulty code when replacement with text case conversion is used
Example
Reproduction steps
Use
\U
or\L
in substitution regex and then generate js codeExpected Outcome
The generator should ideally give the appropriate conversion function in js.
Browser
OS