Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #53 from gergoerdosi/gtld
Browse files Browse the repository at this point in the history
Extend gTLD list.
  • Loading branch information
jakl committed Jan 9, 2014
2 parents c5fcf05 + ed012eb commit ef137ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/com/twitter/Regex.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ public class Regex {
private static final String URL_VALID_UNICODE_CHARS = "[.[^\\p{Punct}\\s\\p{Z}\\p{InGeneralPunctuation}]]";

private static final String URL_VALID_GTLD =
"(?:(?:aero|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|xxx)(?=[^\\p{Alnum}@]|$))";
"(?:(?:academy|aero|asia|bike|biz|buzz|cab|camera|camp|careers|cat|center|clothing|com|company|computer|construction|contractors|coop|" +
"diamonds|directory|domains|edu|enterprises|equipment|estate|gallery|gov|graphics|guru|holdings|info|int|jobs|kitchen|land|lighting|" +
"limo|management|menu|mil|mobi|museum|name|net|org|photography|photos|plumbing|post|pro|recipes|ruhr|sexy|shoes|singles|support|" +
"systems|tattoo|technology|tel|tips|today|travel|uno|ventures|viajes|voyage|xxx)(?=[^\\p{Alnum}@]|$))";
private static final String URL_VALID_CCTLD =
"(?:(?:ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|" +
"bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|" +
Expand Down

0 comments on commit ef137ea

Please sign in to comment.