Correct me if I'm wrong, but couldn't this could have been fixed by making the match possessive:
^[\s\u200c]++|[\s\u200c]++$
That should stop any runaway backtracking?
^[\s\u200c]++|[\s\u200c]++$
That should stop any runaway backtracking?
No comments yet.