revert 2841 - #2879
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Let me play with it first. I suspect it's not \p{P} but my changes to the Lexer masking step. |
|
Mmmm.... I have found the issue. Making it work is a bit obnoxious, but I managed to do it. I can share an alternative PR tomorrow with my changes for you to compare, although the workaround looks a bit odd The issue is that we need to use RegEx in unicode mode (u), to process Essentially, the solution is to destructure strings into an array and slice on the array instead, since this preserves unicode chars which will match the counts from the RegEx: Speed-wise, it seems the same to me, so the tradeoff looks like: Pros:
Cons:
I would also note that this PR has other tweaks included that are not related to this issue. If we decide to revert, I would request we only revert any parts related to the |
|
Nice catch! I would rather fix the problem than revert. I'll wait for your fix. |
|
Apologies. I kind of forgot about this. New PR here: #2942 |
Marked version: 5.1.1
Description
Revert #2841
Contributor
Committer
In most cases, this should be a different person than the contributor.