diff options
author | Corey Hulen <corey@hulen.com> | 2017-03-24 19:28:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 19:28:35 -0700 |
commit | 7460302dec7796e01c98264e84bece8169cb6ed9 (patch) | |
tree | ad7aacbc34ab9c0d9faf6c7ef07fd13c2ed71290 /webapp/utils | |
parent | 9cfa7331785181c4ce80b6c45b6bb8b2df6f8dc3 (diff) | |
download | chat-7460302dec7796e01c98264e84bece8169cb6ed9.tar.gz chat-7460302dec7796e01c98264e84bece8169cb6ed9.tar.bz2 chat-7460302dec7796e01c98264e84bece8169cb6ed9.zip |
Fixing ids for selenium (#5874)
Diffstat (limited to 'webapp/utils')
-rw-r--r-- | webapp/utils/utils.jsx | 2 |
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) { |