Skip to content

Commit bc4a51b

Browse files
authored
Chore: Regex change to capture labels in wallet data imports better (#2357)
1 parent 4bbd56e commit bc4a51b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cryptoadvance/specter/templates/wallet/new_wallet/components/import_wallet_account_map.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
event.preventDefault()
9191
const clipboardData = event.clipboardData || window.clipboardData
9292
const pastedText = clipboardData.getData("text/plain")
93-
const cleanedText = pastedText.replace(/("label":\s?"[^"]*")|\s/g, (_, label) => {
93+
const cleanedText = pastedText.replace(/("label"\s?:\s?"[^"]*")|\s/g, (_, label) => {
9494
if (label) {
9595
return label.replace(/\n/g, ' ') // Convert newline characters to spaces within labels
9696
} else {

0 commit comments

Comments
 (0)