Skip to content

Added validation for regex literals via RegExp constructor - #35957

Closed
Josh Ghoulberg 👻 (JoshuaKGoldberg) wants to merge 2 commits into
microsoft:masterfrom
JoshuaKGoldberg:regex-validation
Closed

Josh Ghoulberg 👻 (JoshuaKGoldberg) wants to merge 2 commits into
microsoft:masterfrom
JoshuaKGoldberg:regex-validation

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg Josh Ghoulberg 👻 (JoshuaKGoldberg) commented Jan 2, 2020 •

Copy link
Copy Markdown
Contributor

Fixes #3432.

Edit: tests pass in Node 12 but not 8. Filed #35958

@JoshuaKGoldberg

Copy link
Copy Markdown
Contributor Author
@DanielRosenwasser

Daniel Rosenwasser (DanielRosenwasser) commented Jan 3, 2020 •

Copy link
Copy Markdown
Member

tests pass in Node 12 but not 8

This is why I'm really against taking a dependency in any way on the RegExp constructor. I'd rather we understand some basic set of regex sequences and report issues with them (e.g. parentheses matching)

@JoshuaKGoldberg

Copy link
Copy Markdown
Contributor Author

👍 I'll close this for now to keep the queue clean. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants