Skip to content

Commit

Permalink
поправил регулярку логина
Browse files Browse the repository at this point in the history
  • Loading branch information
visavi committed Dec 25, 2018
1 parent 7a3a81d commit 746e6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Classes/BBCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class BBCode
'replace' => '<div class="embed-responsive embed-responsive-16by9"><iframe class="embed-responsive-item" src="//www.youtube.com/embed/$2" allowfullscreen></iframe></div>',
],
'username' => [
'pattern' => '/(?<=^|\s)@([\w\-]+)(?=(\s|,))/',
'pattern' => '/(?<=^|\s)@([\w\-]{3,20}+)(?=(\s|,))/',
'replace' => '<a href="/users/$1">$0</a>',
],
];
Expand Down

0 comments on commit 746e6ff

Please sign in to comment.