Hacker News new | past | comments | ask | show | jobs | submit login

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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: