diff options
-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) { |