aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions.rsc')
-rw-r--r--global-functions.rsc7
1 files changed, 7 insertions, 0 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index 8552502..1109043 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -1295,6 +1295,8 @@
:set SymbolByUnicodeName do={
:local Name [ :tostr $1 ];
+ :global LogPrintOnce;
+
:local Symbols {
"abacus"="\F0\9F\A7\AE";
"alarm-clock"="\E2\8F\B0";
@@ -1328,6 +1330,11 @@
"white-heavy-check-mark"="\E2\9C\85"
}
+ :if ([ :len ($Symbols->$Name) ] = 0) do={
+ $LogPrintOnce warning $0 ("No symbol available for name '" . $Name . "'!") false;
+ :return "";
+ }
+
:return (($Symbols->$Name) . "\EF\B8\8F");
}