Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed to prevent autolinking path trailing comma

  • Loading branch information...
commit 6bc4a76f7df3ab933998069724d8e928862f846e 1 parent ff8063f
@ngnpope ngnpope authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Twitter/Regex.php
View
2  lib/Twitter/Regex.php
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.