-
-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add EReg.escape #5098
add EReg.escape #5098
Conversation
If no comments follow, I'll merge this later today. |
Let's please wait with this, there's no reason to rush this into the RC and I'm not even sure what use-cases this has. |
One use-case I had lately is with hxmustache. It uses regexp-based parsing and one can specify custom tags (e.g. |
There is a lot of value in that function to build runtime patterns. I On Tue, Apr 12, 2016 at 5:26 AM, Dan Korostelev notifications@github.com
|
We can merge this, but you'll have to change the CHANGES.txt commit. Also it would obviously be nice to have some tests... |
+1 for this, I recently needed this while converting some codebase from C# and had to come up with my own implementation. I didn't know |
Rebased. There's a basic test in |
I need this from time to time and I think it should be in the std lib. I tried to use platform-native (or recommended) regex escaping functions, but for others (cpp,neko,hl,lua) I used the implementation involving
map
. It works but it may not be the most efficient solution which can be improved in future.I know we're in feature freeze, but this addition seems to be very minor and safe for 3.3.