Skip to content

Commit d8c84c3

Browse files
committed
add non-breaking space to stop symbols list
1 parent 59f995e commit d8c84c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/nibor/autolink/internal/Scanners.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public static int findUrlEnd(CharSequence input, int beginIndex) {
9797
case '\u009D':
9898
case '\u009E':
9999
case '\u009F':
100+
case '\u00A0': //non-breaking space
100101
// These can never be part of an URL, so stop now. See RFC 3986 and RFC 3987.
101102
// Some characters are not in the above list, even they are not in "unreserved" or "reserved":
102103
// '"', '\\', '^', '`', '{', '|', '}'

0 commit comments

Comments
 (0)