oracle / graaljs

GraalJS – A high-performance, ECMAScript compliant, and embeddable JavaScript runtime for Java
https://www.graalvm.org/javascript/
Universal Permissive License v1.0
1.82k stars 191 forks source link

[GR-57589] Implement `RegExp.escape` #853

Open fniephaus opened 2 months ago

fniephaus commented 2 months ago

TL;DR

We plan to implement the RegExp Escaping proposal in GraalJS.

Details

Adds RegExp.escape, a function that can be used to build a regular expression out of a string without treating special characters from the string as special regular expression tokens.