There was an error while loading. Please reload this page.
1 parent d705497 commit f6d4a8bCopy full SHA for f6d4a8b
1 file changed
app/components/views/GetStartedPage/PreCreateWallet/hooks.js
@@ -64,7 +64,7 @@ export const usePreCreateWallet = ({
64
// Filesystem related chars: /\.:
65
// Escaped when stored in dcrwallet.conf ini files: ;#[]
66
// Specially handled by dcrwallet: $%~
67
- const replaceNameChars = /[/\\.:;#[\]$%~]/;
+ const replaceNameChars = /[/\\.:;#[\]$%~]/g;
68
newWalletName = newWalletName.replace(replaceNameChars, "");
69
// Remove leading spaces.
70
if (newWalletName.length > 0 && newWalletName[0] === " ")
0 commit comments