Hacker News new | ask | show | jobs
by brokencube 3623 days ago
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?