Open geraintluff opened 9 years ago
I think that this is expected behavior and nothing should be done by this library about it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError.
True - however, in situations where you're pattern matching (e.g. using this module in a routing table), throwing exceptions is might be impolite.
URLs such as
some%thing
->{url}
will throw because%th
is not a valid character. We should catch these and treat them as failures.