@@ -87,13 +87,15 @@ public void delimiterSeparation() {
87
87
assertLinked ("http://example.org/:" , "|http://example.org/|:" );
88
88
assertLinked ("http://example.org/?" , "|http://example.org/|?" );
89
89
assertLinked ("http://example.org/!" , "|http://example.org/|!" );
90
+ assertLinked ("http://example.org/;" , "|http://example.org/|;" );
90
91
}
91
92
92
93
@ Test
93
94
public void matchingPunctuation () {
94
95
assertLinked ("http://example.org/a(b)" , "|http://example.org/a(b)|" );
95
96
assertLinked ("http://example.org/a[b]" , "|http://example.org/a[b]|" );
96
97
assertLinked ("http://example.org/a{b}" , "|http://example.org/a{b}|" );
98
+ assertLinked ("http://example.org/a<b>" , "|http://example.org/a<b>|" );
97
99
assertLinked ("http://example.org/a\" b\" " , "|http://example.org/a\" b\" |" );
98
100
assertLinked ("http://example.org/a'b'" , "|http://example.org/a'b'|" );
99
101
assertLinked ("(http://example.org/)" , "(|http://example.org/|)" );
@@ -110,11 +112,33 @@ public void matchingPunctuationTricky() {
110
112
assertLinked ("[(http://example.org/)]" , "[(|http://example.org/|)]" );
111
113
assertLinked ("(http://example.org/)." , "(|http://example.org/|)." );
112
114
assertLinked ("(http://example.org/.)" , "(|http://example.org/|.)" );
115
+ assertLinked ("http://example.org/>" , "|http://example.org/|>" );
113
116
// not sure about these:
114
117
assertLinked ("http://example.org/(" , "|http://example.org/(|" );
115
118
assertLinked ("http://example.org/]()" , "|http://example.org/|]()" );
116
119
}
117
120
121
+ @ Test
122
+ public void html () {
123
+ assertLinked ("http://example.org\" >" , "|http://example.org|\" >" );
124
+ assertLinked ("http://example.org'>" , "|http://example.org|'>" );
125
+ assertLinked ("http://example.org\" />" , "|http://example.org|\" />" );
126
+ assertLinked ("http://example.org'/>" , "|http://example.org|'/>" );
127
+ }
128
+
129
+ @ Test
130
+ public void css () {
131
+ assertLinked ("http://example.org\" );" , "|http://example.org|\" );" );
132
+ assertLinked ("http://example.org');" , "|http://example.org|');" );
133
+ }
134
+
135
+ @ Test
136
+ public void slash () {
137
+ assertLinked ("http://example.org/" , "|http://example.org/|" );
138
+ assertLinked ("http://example.org/a/" , "|http://example.org/a/|" );
139
+ assertLinked ("http://example.org//" , "|http://example.org//|" );
140
+ }
141
+
118
142
@ Test
119
143
public void multiple () {
120
144
assertLinked ("http://one.org/ http://two.org/" , "|http://one.org/| |http://two.org/|" );
0 commit comments