@@ -63,15 +63,17 @@ and unbalanced parentheses, see examples below.
63
63
Supports internationalized domain names (IDN). Note that they are not validated
64
64
and as a result, invalid URLs may be matched.
65
65
66
- Example input and the extracted link :
66
+ Example input and linked result :
67
67
68
- * ` http://example.com. ` → ` http://example.com `
69
- * ` http://example.com, ` → ` http://example.com `
70
- * ` (http://example.com) ` → ` http://example.com `
71
- * ` (... (see http://example.com)) ` → ` http://example.com `
68
+ * ` http://example.com. ` → [ http://example.com ] ( ) .
69
+ * ` http://example.com, ` → [ http://example.com ] ( ) ,
70
+ * ` (http://example.com) ` → ( [ http://example.com ] ( ) )
71
+ * ` (... (see http://example.com)) ` → (... (see [ http://example.com ] ( ) ))
72
72
* ` https://en.wikipedia.org/wiki/Link_(The_Legend_of_Zelda) ` →
73
- ` https://en.wikipedia.org/wiki/Link_(The_Legend_of_Zelda) `
74
- * ` http://üñîçøðé.com/ ` → ` http://üñîçøðé.com/ `
73
+ [ https://en.wikipedia.org/wiki/Link_(The_Legend_of_Zelda) ] ( )
74
+ * ` http://üñîçøðé.com/ ` → [ http://üñîçøðé.com/ ] ( )
75
+
76
+ Also see [ test cases] ( src/test/java/org/nibor/autolink/AutolinkUrlTest.java ) .
75
77
76
78
### Email address extraction
77
79
@@ -81,10 +83,12 @@ but doesn't verify the domain name (may match too much).
81
83
82
84
Examples:
83
85
84
- * ` foo@example.com ` → ` foo@example.com `
85
- * ` foo@example.com. ` → ` foo@example.com `
86
- * ` foo@example.com, ` → ` foo@example.com `
87
- * ` üñîçøðé@üñîçøðé.com ` → ` üñîçøðé@üñîçøðé.com `
86
+ * ` foo@example.com ` → [ foo@example.com ] ( )
87
+ * ` foo@example.com. ` → [ foo@example.com ] ( ) .
88
+ * ` foo@example.com, ` → [ foo@example.com ] ( ) ,
89
+ * ` üñîçøðé@üñîçøðé.com ` → [ üñîçøðé@üñîçøðé.com] ( )
90
+
91
+ Also see [ test cases] ( src/test/java/org/nibor/autolink/AutolinkEmailTest.java ) .
88
92
89
93
Contributing
90
94
------------
0 commit comments