Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const usePreCreateWallet = ({
// Filesystem related chars: /\.:
// Escaped when stored in dcrwallet.conf ini files: ;#[]
// Specially handled by dcrwallet: $%~
const replaceNameChars = /[/\\.:;#[\]$%~]/;
const replaceNameChars = /[/\\.:;#[\]$%~]/g;
newWalletName = newWalletName.replace(replaceNameChars, "");
// Remove leading spaces.
if (newWalletName.length > 0 && newWalletName[0] === " ")
Expand Down
Loading