NET-A-PORTER / scala-uri

Simple scala library for building and parsing URIs
Other
261 stars 33 forks source link

Passing a [/ returns a valid URI? #118

Closed schmitch closed 8 years ago

schmitch commented 8 years ago

Actually while checking a "wrong" URI against scala-uri I've seen that calling:

Uri.parse("[/").path

would yield in something like that:

res0: String = /%5B/

I actually would prefer that this will return a IllegalArgumentException or return a Option[Uri] since [/ is not a valid Uri. Would also be okai to have a setting to say "more strict". Else we would need to check for valid paths by ourself.

schmitch commented 8 years ago

NVM