From 7460302dec7796e01c98264e84bece8169cb6ed9 Mon Sep 17 00:00:00 2001
From: Corey Hulen <corey@hulen.com>
Date: Fri, 24 Mar 2017 19:28:35 -0700
Subject: Fixing ids for selenium (#5874)

---
 webapp/utils/utils.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/utils/utils.jsx')

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) {
-- 
cgit v1.2.3-1-g7c22

