From 2fdc976aeea80bfc11544b6e0752f62c5066fd38 Mon Sep 17 00:00:00 2001 From: Adam Megacz Date: Fri, 15 Apr 2011 21:39:55 -0700 Subject: [PATCH] resolve ambiguity between urls and email addresses --- src/url.g | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/url.g b/src/url.g index 4ff664a..d848a37 100644 --- a/src/url.g +++ b/src/url.g @@ -23,8 +23,8 @@ Host = IP:: tok.digit "." tok.digit "." tok.digit "." tok.digit | DNS:: (part:: [a-zA-Z0-9\-]++) ++/ "." Port:: = (":" `tok.Int)? -username:: = [a-zA-Z0-9;/?:&=$\-_.+]++ -password:: = [a-zA-Z0-9;/?:&=$\-_.+]++ +username:: = [a-zA-Z0-9;?:&=$\-_.+]++ // slashes in usernames conflict with urls +password:: = [a-zA-Z0-9;?:&=$\-_.+/]++ method:: = [+\-.a-z0-9]+ urlchar = urlc | "%":: "%" [0-9a-fA-F] [0-9a-fA-F] -- 1.7.10.4