summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-03-24 19:28:35 -0700
committerGitHub <noreply@github.com>2017-03-24 19:28:35 -0700
commit7460302dec7796e01c98264e84bece8169cb6ed9 (patch)
treead7aacbc34ab9c0d9faf6c7ef07fd13c2ed71290 /webapp
parent9cfa7331785181c4ce80b6c45b6bb8b2df6f8dc3 (diff)
downloadchat-7460302dec7796e01c98264e84bece8169cb6ed9.tar.gz
chat-7460302dec7796e01c98264e84bece8169cb6ed9.tar.bz2
chat-7460302dec7796e01c98264e84bece8169cb6ed9.zip
Fixing ids for selenium (#5874)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/utils/utils.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index a64b06a3b..16e208409 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -36,7 +36,7 @@ export function createSafeId(str) {
return null;
}
- return str.replace(' ', '_');
+ return str.replace(new RegExp(' ', 'g'), '_');
}
export function cmdOrCtrlPressed(e) {