]> gitweb.factorcode.org Git - factor.git/commitdiff
urls: allow empty query and fragments in parse.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 4 Mar 2021 19:02:35 +0000 (11:02 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 4 Mar 2021 19:02:35 +0000 (11:02 -0800)
basis/urls/urls.factor

index a5234f2c9cde3a1c7e098c61317c93035b22c58d..2985521d749fa5b3b10b8c474fab57ccdf82a783 100644 (file)
@@ -62,8 +62,8 @@ host     = (ipv6 | hostname) (":"~ port?)?
 url      = (protocol ":"~)?
            ("//"~ auth? host?)?
            path?
-           ("?"~ query)?
-           ("#"~ anchor)?
+           ("?"~ query?)?
+           ("#"~ anchor?)?
 
 ]=]