Skip to content

Commit

Permalink
Update DetectFacets.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Nov 19, 2024
1 parent 78fab97 commit 2879671
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RichText/DetectFacets.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class DetectFacets
{
protected const MENTION_REGEX = '/(^|\s|\()(@)([a-zA-Z0-9.-]+)(\b)/';

protected const URL_REGEX =
'/(^|\s|\()((https?:\/\/[\S]+)|((?<domain>[a-z][a-z0-9]*(\.[a-z0-9]+)+)[\S]*))/i';
protected const URL_REGEX = '/(^|\s|\()((https?:\/\/[\S]+)|((?<domain>[a-z][a-z0-9]*(\.[a-z0-9]+)+)[\S]*))/i';

protected const TRAILING_PUNCTUATION_REGEX = '/\p{P}+$/u';

Expand Down

0 comments on commit 2879671

Please sign in to comment.