Skip to content

Commit

Permalink
remove redundant '#' character from isValidMention
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jul 11, 2023
1 parent cc11e21 commit 832b1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/str.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ const Str = {
}
const firstChar = mention.charAt(0);
const lastChar = mention.charAt(mention.length - 1);
return /[*~_#'"]/g.test(firstChar) && /[*~_#'"]/g.test(lastChar) && firstChar === lastChar;
return /[*~_'"]/g.test(firstChar) && /[*~_'"]/g.test(lastChar) && firstChar === lastChar;
},

/**
Expand Down

0 comments on commit 832b1d8

Please sign in to comment.