From a2fb1f7bd00dbefdd3009ca5b6cec4f5985e0718 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 23 Jan 2023 10:19:49 +0100 Subject: Apply updates I had laying around --- lib/IRC/Grammar.pm6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/IRC/Grammar.pm6') diff --git a/lib/IRC/Grammar.pm6 b/lib/IRC/Grammar.pm6 index f859edc..0bc86f7 100644 --- a/lib/IRC/Grammar.pm6 +++ b/lib/IRC/Grammar.pm6 @@ -28,7 +28,7 @@ token host { | } token hostname { [ '.' ]* '.'? } token hostaddr { | } token ip4addr { [ \d ** 1..3 ] ** 4 % '.' } -token ip6addr { [ <[ \d a..f A..F ]> ** 1..4 ] ** 8 % ':' } +token ip6addr { [ <[ \d a..f A..F ]> ** 1..4 ] ** 1..8 % [ '::' | ':' ] } token shortname { <[ \w \d / ]> <[ \w \d / \- ]>* <[ \w \d / ]>? } token nospcrlfcl { <-[ \0 \r \n \s : ]> } -- cgit v1.1