mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-19 19:31:37 +02:00
Add more punctuation. Also s/let/const/
This commit is contained in:
parent
242f5e0301
commit
b58a67f6b1
@ -331,7 +331,7 @@ module.exports = React.createClass({
|
|||||||
// * The start of the string
|
// * The start of the string
|
||||||
// * Whitespace, or
|
// * Whitespace, or
|
||||||
// * A fixed number of punctuation characters
|
// * A fixed number of punctuation characters
|
||||||
let expr = new RegExp("(?:^|[\\s\\(\)'\",\.-])" + escapeRegExp(query));
|
const expr = new RegExp("(?:^|[\\s\\(\)'\",\.-_@\?;:{}\\[\\]\\#~`\\*\\&\\$])" + escapeRegExp(query));
|
||||||
if (expr.test(name)) {
|
if (expr.test(name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user