Enable unicode support in pcre#61
Conversation
|
This does have a not insignificant performance and size impact, hence the failing test: Without
|
|
@smashwilson I don't recall intentionally turning unicode support off; I think I just wasn't aware of (and didn't realize that we weren't handling) regexes with I'm assuming that the performance degradation only occurs when the |
Verifying that presently.
Ah! I didn't know JavaScript regexes had a |
|
Actually it's a bit more complicated than detecting non-ascii characters. It seems like |
Looks good: about 100ms with node, 1000ms in browser. I just found that too 😄 Well that's a bit of a mess. I'd suggest adding another toggle to find-and-replace to flip Of the |
|
Offhand I'm leaning toward "set |
I'm punting this to a separate PR because "respecting |
Enable Unicode support in pcre and compile regular expressions with
PCRE2_UTF.Fixes #56.