Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Alter the domain regex to handle the new hyphenization rules

  • Loading branch information...
commit e7ff21bfe7f6529ab6bb7b4c7852f7f58d91d8a4 1 parent f4814a6
Matt Sanford authored
Showing with 52 additions and 52 deletions.
  1. BIN  dist/lib/twitter-text-1.0.4.jar
  2. +2 −2 docs/api/allclasses-frame.html
  3. +2 −2 docs/api/allclasses-noframe.html
  4. +2 −2 docs/api/com/twitter/Autolink.html
  5. +2 −2 docs/api/com/twitter/Extractor.html
  6. +2 −2 docs/api/com/twitter/Regex.html
  7. +2 −2 docs/api/com/twitter/class-use/Autolink.html
  8. +2 −2 docs/api/com/twitter/class-use/Extractor.html
  9. +2 −2 docs/api/com/twitter/class-use/Regex.html
  10. +2 −2 docs/api/com/twitter/package-frame.html
  11. +2 −2 docs/api/com/twitter/package-summary.html
  12. +2 −2 docs/api/com/twitter/package-tree.html
  13. +2 −2 docs/api/com/twitter/package-use.html
  14. +2 −2 docs/api/com/twitter/regex/Spaces.html
  15. +2 −2 docs/api/com/twitter/regex/class-use/Spaces.html
  16. +2 −2 docs/api/com/twitter/regex/package-frame.html
  17. +2 −2 docs/api/com/twitter/regex/package-summary.html
  18. +2 −2 docs/api/com/twitter/regex/package-tree.html
  19. +2 −2 docs/api/com/twitter/regex/package-use.html
  20. +2 −2 docs/api/constant-values.html
  21. +2 −2 docs/api/deprecated-list.html
  22. +2 −2 docs/api/help-doc.html
  23. +2 −2 docs/api/index-all.html
  24. +1 −1  docs/api/index.html
  25. +2 −2 docs/api/overview-frame.html
  26. +2 −2 docs/api/overview-summary.html
  27. +2 −2 docs/api/overview-tree.html
  28. +1 −1  src/com/twitter/Regex.java
View
BIN  dist/lib/twitter-text-1.0.4.jar
Binary file not shown
View
4 docs/api/allclasses-frame.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
All Classes (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
4 docs/api/allclasses-noframe.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
All Classes (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/Autolink.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:41 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
Autolink (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/Extractor.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
Extractor (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/Regex.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
Regex (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/class-use/Autolink.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Uses of Class com.twitter.Autolink (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/class-use/Extractor.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Uses of Class com.twitter.Extractor (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/class-use/Regex.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
Uses of Class com.twitter.Regex (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/package-frame.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
com.twitter (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/package-summary.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
com.twitter (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/package-tree.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
com.twitter Class Hierarchy (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/package-use.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Uses of Package com.twitter (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/regex/Spaces.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
Spaces (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/regex/class-use/Spaces.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Uses of Class com.twitter.regex.Spaces (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/regex/package-frame.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
com.twitter.regex (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/regex/package-summary.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
com.twitter.regex (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/regex/package-tree.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
com.twitter.regex Class Hierarchy (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
View
4 docs/api/com/twitter/regex/package-use.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Uses of Package com.twitter.regex (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
View
4 docs/api/constant-values.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
Constant Field Values (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
4 docs/api/deprecated-list.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Deprecated List (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
4 docs/api/help-doc.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
API Help (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
4 docs/api/index-all.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Index (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="./stylesheet.css" TITLE="Style">
View
2  docs/api/index.html
@@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc on Thu Mar 11 09:55:42 PST 2010-->
+<!-- Generated by javadoc on Mon Apr 19 15:24:45 PDT 2010-->
<TITLE>
Twitter Text API
</TITLE>
View
4 docs/api/overview-frame.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:44 PDT 2010 -->
<TITLE>
Overview List (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
4 docs/api/overview-summary.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Overview (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
4 docs/api/overview-tree.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_17) on Thu Mar 11 09:55:42 PST 2010 -->
+<!-- Generated by javadoc (build 1.6.0_17) on Mon Apr 19 15:24:45 PDT 2010 -->
<TITLE>
Class Hierarchy (Twitter Text API)
</TITLE>
-<META NAME="date" CONTENT="2010-03-11">
+<META NAME="date" CONTENT="2010-04-19">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
2  src/com/twitter/Regex.java
@@ -14,7 +14,7 @@
/* URL related hash regex collection */
private static final String URL_VALID_PRECEEDING_CHARS = "(?:[^/\"':!=]|^|\\:)";
- private static final String URL_VALID_DOMAIN = "(?:[^\\p{Punct}\\s]+[\\.-][^\\p{Punct}\\s]+|[^\\p{Punct}\\s])+\\.[a-z]{2,}(?::[0-9]+)?";
+ private static final String URL_VALID_DOMAIN = "(?:[^\\p{Punct}\\s][\\.-](?=[^\\p{Punct}\\s])|[^\\p{Punct}\\s])+\\.[a-z]{2,}(?::[0-9]+)?";
private static final String URL_VALID_URL_PATH_CHARS = "(?:[\\.,]?[a-z0-9!\\*'\\(\\);:=\\+\\$/%#\\[\\]\\-_,~@])";
// Valid end-of-path chracters (so /foo. does not gobble the period).
// 1. Allow ) for Wikipedia URLs.
Please sign in to comment.
Something went wrong with that request. Please try again.