From 6bd18ded279233d43894c8efd5e8cdaee9a858f0 Mon Sep 17 00:00:00 2001 From: Krzysztof Date: Mon, 6 May 2024 10:26:28 +0200 Subject: [PATCH] fix: Handle special chars in names --- plasmoid/contents/ui/NordVPN.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plasmoid/contents/ui/NordVPN.qml b/plasmoid/contents/ui/NordVPN.qml index aa4635b..e1339a0 100644 --- a/plasmoid/contents/ui/NordVPN.qml +++ b/plasmoid/contents/ui/NordVPN.qml @@ -98,7 +98,7 @@ Item { // Format NordVPN id function formatArgument(name) { - return name ? name.replace(/\s/g, '_') : '' + return name ? '"' + name.replace(/\s/g, '_') + '"' : '' } // Log, display and rethrow error