New commits:
commit 0fd0effc91a97b8fa22f8fa1e24ab416052cd1e9
Author: Xenanthropy <connerclere AT gmail.com>
Commit: Pavel Vinogradov <public AT sourcemage.org>
FUNCTIONS: fix get_up_spell_name to properly convert chars
diff --git a/ChangeLog b/ChangeLog
index 24ee146..9db1771 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-01-01 Conner Clere <connerclere AT gmail.com>
+ * FUNCTIONS: fix get_up_spell_name to properly convert
+ all characters invalid for bash variable names
+
2023-01-01 Vlad Glagolev <stealth AT sourcemage.org>
* news/newsraft: new spell, terminal feed reader
diff --git a/FUNCTIONS b/FUNCTIONS
index b1fb286..9081b45 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -834,8 +834,9 @@ function get_up_spell_name() {
result=$spell
fi
- # Replaces the hyphens with underscores, then echos $argument in all
uppercase
- result=${result//-/_}
+ # Replaces - and . with _, + with X, then echos $argument in all uppercase
+ result=${result//[-.]/_}
+ result=${result//+/X}
echo "${result^^}"
}
[SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (0fd0effc91a97b8fa22f8fa1e24ab416052cd1e9),
Pavel Vinogradov, 01/02/2023