4 ms·
The famous "Gruber URL regexp", before an update in 2014, would run in exponential time given some URLs that contained parens. I noticed this when a web app I
by mbrock 11y ago
The famous "Gruber URL regexp", before an update in 2014, would run in exponential time given some URLs that contained parens.
I noticed this when a web app I worked on froze on certain pages. Runaway regexp matching is one of the easiest ways to really lock a JavaScript thread.
- johnmaguire2013 11y agoI was also hit by this one in my pet IRC bot. :) URL matching would fail (occasionally) and the whole bot would freeze up. :<