Permalink
Browse files

Fixed to prevent autolinking path trailing comma

  • Loading branch information...
1 parent ff8063f commit 6bc4a76f7df3ab933998069724d8e928862f846e @ngnpope ngnpope committed Dec 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Twitter/Regex.php
View
@@ -57,7 +57,7 @@
*
* @var string
*/
- const REGEX_URL_CHARS_PATH = '(?:(?:\\([a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_,~]+\\))|@[a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_,~]+\\/|[\\.\\,]?[a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_,~])';
+ const REGEX_URL_CHARS_PATH = '(?:(?:\\([a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_,~]+\\))|@[a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_,~]+\\/|[\\.\\,]?(?:[a-z0-9!\\*\';:=\\+\\$\\/%#\\[\\]\\-_~]|,(?!\s)))';
/**
* Expression to match characters that may come at the end of the URL path.

0 comments on commit 6bc4a76

Please sign in to comment.