File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
main/java/org/nibor/autolink
test/java/org/nibor/autolink Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ private Scanner trigger(char c) {
50
50
case '@' :
51
51
return emailScanner ;
52
52
case 'w' :
53
- case 'W' :
54
53
return wwwScanner ;
55
54
}
56
55
return null ;
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ private static final boolean isAllowed(char c) {
62
62
63
63
private static final boolean isWWW (final CharSequence input , final int triggerIndex ) {
64
64
return
65
- (input .charAt (triggerIndex + 1 ) == 'w' || input . charAt ( triggerIndex + 1 ) == 'W' )
66
- && (input .charAt (triggerIndex + 2 ) == 'w' || input . charAt ( triggerIndex + 2 ) == 'W' )
65
+ (input .charAt (triggerIndex + 1 ) == 'w' )
66
+ && (input .charAt (triggerIndex + 2 ) == 'w' )
67
67
&& input .charAt (triggerIndex + 3 ) == '.' ;
68
68
}
69
69
}
Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ public void linked() {
45
45
assertLinked ("www.fo.uk" ,"|www.fo.uk|" );
46
46
assertLinked ("foo:www.fo.uk" ,"foo:|www.fo.uk|" );
47
47
assertLinked ("foo-www.fo.uk" ,"foo-|www.fo.uk|" );
48
- assertLinked ("WWW.s.com" ,"|WWW.s.com|" );
49
- assertLinked ("Www.s.com" ,"|Www.s.com|" );
50
48
}
51
49
52
50
@ Test
You can’t perform that action at this time.
0 commit comments