- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Tue, 23 Dec 2014 15:42:38 +0100
- To: Sam Ruby <rubys@intertwingly.net>
- Cc: Mark Nottingham <mnot@mnot.net>, "public-ietf-w3c@w3.org" <public-ietf-w3c@w3.org>
* Sam Ruby wrote: >On 12/22/2014 06:36 PM, Mark Nottingham wrote: >> See also >> https://gist.github.com/mnot/138549 > >Thanks! > >Here's a result I didn't expect: > >> python uri_validate.py "http://user:password@example.com/" >> testing: "http://user:password@example.com/" >> URI: no >> URI reference: no >> Absolute URI: no > >Am I doing something wrong? Given # reg-name = *( unreserved / pct-encoded / sub-delims ) reg_name = r"(?: %(unreserved)s | %(pct_encoded)s | %(sub_delims)s )*" % locals() # userinfo = *( unreserved / pct-encoded / sub-delims / ":" ) userinfo = r"(?: %(unreserved)s | %(pct_encoded)s | %(sub_delims)s | : )" % locals() I would say there is a missing `*` at the end of `userinfo`. -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de D-10243 Berlin · PGP Pub. KeyID: 0xA4357E78 · http://www.bjoernsworld.de Available for hire in Berlin (early 2015) · http://www.websitedev.de/
Received on Tuesday, 23 December 2014 14:43:13 UTC