@@ -119,7 +119,6 @@ public void matchingPunctuation() {
119119 assertLinked ("http://example.org/a(b)" , "|http://example.org/a(b)|" );
120120 assertLinked ("http://example.org/a[b]" , "|http://example.org/a[b]|" );
121121 assertLinked ("http://example.org/a{b}" , "|http://example.org/a{b}|" );
122- assertLinked ("http://example.org/a\" b\" " , "|http://example.org/a\" b\" |" );
123122 assertLinked ("http://example.org/a'b'" , "|http://example.org/a'b'|" );
124123 assertLinked ("(http://example.org/)" , "(|http://example.org/|)" );
125124 assertLinked ("[http://example.org/]" , "[|http://example.org/|]" );
@@ -145,13 +144,15 @@ public void matchingPunctuationTricky() {
145144
146145 @ Test
147146 public void quotes () {
148- assertLinked ("http://example.org/\" _(foo)" , "|http://example.org/\" _(foo)|" );
149- assertLinked ("http://example.org/\" _(foo)\" " , "|http://example.org/\" _(foo)\" |" );
150- assertLinked ("http://example.org/\" \" " , "|http://example.org/\" \" |" );
151- assertLinked ("http://example.org/\" \" \" " , "|http://example.org/\" \" |\" " );
152- assertLinked ("http://example.org/\" ." , "|http://example.org/|\" ." );
153- assertLinked ("http://example.org/\" a" , "|http://example.org/\" a|" );
147+ assertLinked ("http://example.org/\' _(foo)" , "|http://example.org/\' _(foo)|" );
148+ assertLinked ("http://example.org/\' _(foo)\' " , "|http://example.org/\' _(foo)\' |" );
149+ assertLinked ("http://example.org/\' \' " , "|http://example.org/\' \' |" );
150+ assertLinked ("http://example.org/\' \' \' " , "|http://example.org/\' \' |\' " );
151+ assertLinked ("http://example.org/\' ." , "|http://example.org/|\' ." );
154152 assertLinked ("http://example.org/it's" , "|http://example.org/it's|" );
153+ // " not allowed in URLs
154+ assertLinked ("http://example.org/\" a" , "|http://example.org/|\" a" );
155+ assertLinked ("http://example.org/\" a\" " , "|http://example.org/|\" a\" " );
155156 }
156157
157158 @ Test
0 commit comments