From cff07b5f76c9b28e8a1f7dfb64767cc43371138a Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 25 Jul 2013 22:14:59 +0200 Subject: Fix parsing of links with ... in URL (#1489192) --- tests/Framework/StringReplacer.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/Framework/StringReplacer.php b/tests/Framework/StringReplacer.php index dc7638734..8f6eaf4b9 100644 --- a/tests/Framework/StringReplacer.php +++ b/tests/Framework/StringReplacer.php @@ -27,6 +27,7 @@ class Framework_StringReplacer extends PHPUnit_Framework_TestCase array('http://domain.tld/path*path2', 'http://domain.tld/path*path2'), array("Click this link:\nhttps://mail.xn--brderli-o2a.ch/rc/ EOF", "Click this link:\nhttps://mail.xn--brderli-o2a.ch/rc/ EOF"), array('Start http://localhost/?foo End', 'Start http://localhost/?foo End'), + array('http://localhost/?foo=bar. Period', 'http://localhost/?foo=bar. Period'), array('www.domain.tld', 'www.domain.tld'), array('WWW.DOMAIN.TLD', 'WWW.DOMAIN.TLD'), array('[http://link.com]', '[http://link.com]'), @@ -35,6 +36,7 @@ class Framework_StringReplacer extends PHPUnit_Framework_TestCase array('(http://link.com)', '(http://link.com)'), array('http://link.com?a(b)c', 'http://link.com?a(b)c'), array('http://link.com?(link)', 'http://link.com?(link)'), + array('https://github.com/a/b/compare/3a0f82...1f4b2a after', 'https://github.com/a/b/compare/3a0f82...1f4b2a after'), array('http://', 'http://'), array('http://', 'http://'), array('1@1.com www.domain.tld', '1@1.com www.domain.tld'), -- cgit v1.2.3