ocaml-uri icon indicating copy to clipboard operation
ocaml-uri copied to clipboard

Invalid parsing of ports

Open leostera opened this issue 1 year ago • 0 comments

Hi folks, filing this for reference.

At the moment when we parse localhost:-1 it becomes localhost/-1 whereas I'd expect it to either:

  • parse the port as a negative integer, and let me validate afterward
  • or fail to parse entirely with an invalid port error

leostera avatar Jan 02 '24 09:01 leostera