Skip to content

Commit

Permalink
remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
agilejune committed Nov 14, 2023
1 parent b5707f8 commit 5d40ac3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/str.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,7 @@ const Str = {
*/
isValidMention(mention) {
// Mentions can start @ proceeded by a space, eg "ping @[email protected]"
// or by a @here, eg "@here@[email protected]"
if (/[\s@]/g.test(mention.charAt(0)) || /^@here.*/g.test(mention)) {
if (/[\s@]/g.test(mention.charAt(0))) {
return true;
}

Expand Down

0 comments on commit 5d40ac3

Please sign in to comment.