You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Add more punctuation. Also s/let/const/
This commit is contained in:
@@ -331,7 +331,7 @@ module.exports = React.createClass({
|
||||
// * The start of the string
|
||||
// * Whitespace, or
|
||||
// * A fixed number of punctuation characters
|
||||
let expr = new RegExp("(?:^|[\\s\\(\)'\",\.-])" + escapeRegExp(query));
|
||||
const expr = new RegExp("(?:^|[\\s\\(\)'\",\.-_@\?;:{}\\[\\]\\#~`\\*\\&\\$])" + escapeRegExp(query));
|
||||
if (expr.test(name)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user