Re: [url] Requests for Feedback (was Feedback from TPAC)

* 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