Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Regex for URI.withinString extremely slow on certain inputs #131
I believe URI's regex for extracting URIs suffers from "catastrophic backtracking" (http://www.regular-expressions.info/catastrophic.html). Here's a repro case (runs in Node). I've also been able to reproduce the slowness in Chrome.
var URI = require("URIjs");