Is there a reason we don't match against our url regex in `lib/regex.js` here?