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) {
5050 case '@' :
5151 return emailScanner ;
5252 case 'w' :
53- case 'W' :
5453 return wwwScanner ;
5554 }
5655 return null ;
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ private static final boolean isAllowed(char c) {
6262
6363 private static final boolean isWWW (final CharSequence input , final int triggerIndex ) {
6464 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' )
6767 && input .charAt (triggerIndex + 3 ) == '.' ;
6868 }
6969}
Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ public void linked() {
4545 assertLinked ("www.fo.uk" ,"|www.fo.uk|" );
4646 assertLinked ("foo:www.fo.uk" ,"foo:|www.fo.uk|" );
4747 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|" );
5048 }
5149
5250 @ Test
You can’t perform that action at this time.
0 commit comments