Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from moritz/master

Start to fix for nom - tested with older version of rakudo and seems both helpful and harmless and backward compatible.
  • Loading branch information...
commit 9a2b582fc49af0c3acdeb69ab52441c216e7414b 2 parents 6b17b93 + 54adb06
@ronaldxs ronaldxs authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/URI/Escape.pm
View
6 lib/URI/Escape.pm
@@ -7,7 +7,7 @@ package URI::Escape {
our %escapes;
for 0 .. 255 -> $c { # map broken in module / package ?
- %escapes{ chr($c) } = sprintf "%%%02X", $c
+ %escapes{ chr($c) } = sprintf '%%%02X', $c
}
# in moving from RFC 2396 to RFC 3986 this selection of characters
@@ -27,7 +27,7 @@ package URI::Escape {
do {
my $buf = $_.encode;
for (0 ..^ $buf.elems) {
- sprintf "%%%02X", $buf[ $_ ]
+ sprintf '%%%02X', $buf[ $_ ]
}
}
}).join;
@@ -43,7 +43,7 @@ package URI::Escape {
# see http://www.w3.org/International/questions/qa-forms-utf-8
# find first sequence of %[89ABCDEF]<.xdigit>
# use algorithm from url to determine if it's valid UTF-8
- sub uri_unescape(Str *@to_unesc, Bool :$no_utf8 = False) is export {
+ sub uri_unescape(*@to_unesc, Bool :$no_utf8 = False) is export {
my @rc;
for @to_unesc -> $s is copy {
my $rc = '';
Please sign in to comment.
Something went wrong with that request. Please try again.