From 8218c14a3c3be739dc1d5b6642e2fceedf79b53d Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Mon, 17 Jun 2024 21:50:27 +0200 Subject: [PATCH] add extendedglob option to toml parsing --- functions/@str-read-toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/@str-read-toml b/functions/@str-read-toml index 8610dd2..ab39b59 100644 --- a/functions/@str-read-toml +++ b/functions/@str-read-toml @@ -27,6 +27,8 @@ # @str-read-toml() { + emulate -LR zsh -o extendedglob -o warncreateglobal -o typesetsilent + local __toml_file="$1" __out_hash="${2:-TOML}" __key_prefix="$3" local IFS='' __line __cur_section="void" __access_string REPLY local -a match mbegin mend @@ -66,4 +68,4 @@ done < "$__toml_file" return 0 -} \ No newline at end of file +}