aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-01-06 17:08:59 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-01-06 17:08:59 +0100
commit5b8009dbd06f9a09065843de8eb5f8f680bb4f37 (patch)
tree126eeaec3ab07312dd4f5c32f56faa47d4d6435b /lib
parent9b6ceba4f1df99b262ebbcffcdb30b1ed16f9b42 (diff)
Fix trailing / in URLsHEADmaster
Thanks to chacewells@gmail.com for reporting this issue.
Diffstat (limited to 'lib')
-rw-r--r--lib/URL.pm62
-rw-r--r--lib/URL/Grammar.pm64
-rw-r--r--lib/URL/Grammar/Actions.pm62
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/URL.pm6 b/lib/URL.pm6
index fa9ebc8..113d902 100644
--- a/lib/URL.pm6
+++ b/lib/URL.pm6
@@ -139,7 +139,7 @@ multi method Str (
=NAME URL
=AUTHOR Patrick Spek <p.spek@tyil.work>
-=VERSION 0.2.0
+=VERSION 0.2.1
=head1 Synopsis
diff --git a/lib/URL/Grammar.pm6 b/lib/URL/Grammar.pm6
index 2f5cd45..e14f2a4 100644
--- a/lib/URL/Grammar.pm6
+++ b/lib/URL/Grammar.pm6
@@ -21,7 +21,7 @@ token password { <-[ @ ]>+ }
token host { <hostname> [ ":" <port> ]? }
token hostname { [ <-[ / : # ? \h ]>+ | "[" <-[ \] ]>+ "]" ] }
token port { \d ** 1..5 }
-token path { "/" <part=.path-part>* % "/" }
+token path { "/" <part=.path-part>* %% "/" }
token path-part { <-[ / ? # ]>+ }
token query { <part=.query-part>* % "&" }
token query-part { <key=.query-part-key> "=" <value=.query-part-value> }
@@ -33,7 +33,7 @@ token fragment { <-[ \s ]>+ }
=NAME URL::Grammar
=AUTHOR Patrick Spek <p.spek@tyil.work>
-=VERSION 0.2.0
+=VERSION 0.2.1
=head1 Synopsis
diff --git a/lib/URL/Grammar/Actions.pm6 b/lib/URL/Grammar/Actions.pm6
index 2ef70bb..be7dc4e 100644
--- a/lib/URL/Grammar/Actions.pm6
+++ b/lib/URL/Grammar/Actions.pm6
@@ -32,7 +32,7 @@ method fragment ($/) { make ~$/ }
=NAME URL::Grammar::Actions
=AUTHOR Patrick Spek <p.spek@tyil.work>
-=VERSION 0.2.0
+=VERSION 0.2.1
=head1 Synopsis