aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions8
1 files changed, 6 insertions, 2 deletions
diff --git a/global-functions b/global-functions
index c66f39f..a2a2ab4 100644
--- a/global-functions
+++ b/global-functions
@@ -431,8 +431,12 @@
}
:local Result [ :toarray "" ];
:foreach KeyValue in=[ :toarray $Source ] do={
- :set KeyValue [ :toarray [ $CharacterReplace $KeyValue "=" "," ] ];
- :set ($Result->($KeyValue->0)) ($KeyValue->1);
+ :if ([ :find $KeyValue "=" ]) do={
+ :set KeyValue [ :toarray [ $CharacterReplace $KeyValue "=" "," ] ];
+ :set ($Result->($KeyValue->0)) ($KeyValue->1);
+ } else={
+ :set ($Result->$KeyValue) true;
+ }
}
:return $Result;
}