forked from linkedin/URL-Detector
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83c0c36
commit 0bd1932
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,8 @@ private Object[][] getUsernamePasswordUrls() { | |
{"@www.google.com", "www.google.com", "/", "", ""}, | ||
{"lalal:@www.gogo.com", "www.gogo.com", "/", "lalal", ""}, | ||
{"nono:boo@[::1]", "[::1]", "/", "nono", "boo"}, | ||
{"nono:[email protected]/@1234", "yahoo.com", "/@1234", "nono", "boo"} | ||
{"nono:[email protected]/@1234", "yahoo.com", "/@1234", "nono", "boo"}, | ||
{"[email protected]", "google.com", "/", "big.big.boss", ""} | ||
}; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -657,6 +657,18 @@ public void testIssue12() { | |
runTest("http://user:[email protected] host.com", UrlDetectorOptions.Default, "http://user:[email protected]", "host.com"); | ||
} | ||
|
||
/* | ||
* https://github.com/linkedin/URL-Detector/issues/13 | ||
*/ | ||
@Test | ||
public void testIssue13() { | ||
runTest("[email protected]/page", UrlDetectorOptions.Default, "[email protected]/page"); | ||
runTest("[email protected]", UrlDetectorOptions.Default, "[email protected]"); | ||
runTest("[email protected]", UrlDetectorOptions.Default, "[email protected]"); | ||
runTest("[email protected]", UrlDetectorOptions.Default, "[email protected]"); | ||
runTest("first.middle.reallyreallyreallyreallyreallyreallyreallyreallyreallyreallylonglastname@gmail.com", UrlDetectorOptions.Default, "first.middle.reallyreallyreallyreallyreallyreallyreallyreallyreallyreallylonglastname@gmail.com"); | ||
} | ||
|
||
/* | ||
* https://github.com/linkedin/URL-Detector/issues/16 | ||
*/ | ||
|