Permalink
Browse files

Do not extract URL if preceded by '$'.

  • Loading branch information...
1 parent d2155cf commit 33f27a2323631e17afe585a76ded02e5339fabc8 keita committed Dec 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/twitter/Regex.java
@@ -20,7 +20,7 @@
private static final String HASHTAG_ALPHA_NUMERIC = "[" + HASHTAG_ALPHA_NUMERIC_CHARS +"]";
/* URL related hash regex collection */
- private static final String URL_VALID_PRECEEDING_CHARS = "(?:[^\\-/\"'!=A-Z0-9_@@##.\u202A-\u202E]|^)";
+ private static final String URL_VALID_PRECEEDING_CHARS = "(?:[^\\-/\"'!=A-Z0-9_@@$##.\u202A-\u202E]|^)";
private static final String URL_VALID_CHARS = "[\\p{Alnum}" + LATIN_ACCENTS_CHARS + "]";
private static final String URL_VALID_SUBDOMAIN = "(?:(?:" + URL_VALID_CHARS + "[" + URL_VALID_CHARS + "\\-_]*)?" + URL_VALID_CHARS + "\\.)";

0 comments on commit 33f27a2

Please sign in to comment.