Closed at-ng closed 3 months ago
Minor bug! Code generator "alternative solution" does not escape '.
// const regex = new RegExp(''', 'gm')
The line should be
const regex = new RegExp('\'', 'gm')
as ' needs to be escaped. Or the surrounding quotes could be replaced with something else like `` which is already used below.
Firefox
Windows
Thank you, fixed in next release
Bug Description
Minor bug! Code generator "alternative solution" does not escape '.
Reproduction steps
Expected Outcome
The line should be
as ' needs to be escaped. Or the surrounding quotes could be replaced with something else like `` which is already used below.
Browser
Firefox
OS
Windows