From 6df94a34a135a29e2f75eb7c257b5f2e823330ec Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 15 Dec 2011 00:26:22 +0000 Subject: [PATCH] Less lust for urls --- modules/parser/pegTokenizer.pegjs.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/parser/pegTokenizer.pegjs.txt b/modules/parser/pegTokenizer.pegjs.txt index 9c8ff25ffc..e8aa74ba1b 100644 --- a/modules/parser/pegTokenizer.pegjs.txt +++ b/modules/parser/pegTokenizer.pegjs.txt @@ -630,7 +630,10 @@ urlencoded_char = "%" c0:[0-9a-fA-F] c1:[0-9a-fA-F] { //[^][<>"\\x00-\\x20\\x7F\p{Zs}] url = proto:url_protocol - rest:( [^ :\]\[\n"'<>\x00-\x20\x7f,.&%\u00A0\u1680\u180E\u2000-\u200A\u202F\u205F\u3000] + rest:( ( !inline_breaks + c:[^ :\]\[\n"'<>\x00-\x20\x7f,.&%\u00A0\u1680\u180E\u2000-\u200A\u202F\u205F\u3000] + { return c } + ) / s:[.:,] !(space / eolf) { return s } / htmlentity / urlencoded_char