From 75a2593523dc4aa97ad9b72a851b51d0fe23a142 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 21 Feb 2019 18:18:12 -0700 Subject: [PATCH] More misc linter cleanup --- src/components/views/room_settings/AliasSettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/room_settings/AliasSettings.js b/src/components/views/room_settings/AliasSettings.js index a2b125eb4f..df427171f1 100644 --- a/src/components/views/room_settings/AliasSettings.js +++ b/src/components/views/room_settings/AliasSettings.js @@ -75,7 +75,7 @@ export default class AliasSettings extends React.Component { isAliasValid(alias) { // XXX: FIXME https://github.com/matrix-org/matrix-doc/issues/668 - return (alias.match(/^#([^\/:,]+?):(.+)$/) && encodeURI(alias) === alias); + return (alias.match(/^#([^/:,]+?):(.+)$/) && encodeURI(alias) === alias); } changeCanonicalAlias(alias) { @@ -252,4 +252,4 @@ export default class AliasSettings extends React.Component { ); } -}; +}