Skip to content

Commit 8218c14

Browse files
committed
add extendedglob option to toml parsing
1 parent 64c4526 commit 8218c14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

functions/@str-read-toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#
2828

2929
@str-read-toml() {
30+
emulate -LR zsh -o extendedglob -o warncreateglobal -o typesetsilent
31+
3032
local __toml_file="$1" __out_hash="${2:-TOML}" __key_prefix="$3"
3133
local IFS='' __line __cur_section="void" __access_string REPLY
3234
local -a match mbegin mend
@@ -66,4 +68,4 @@
6668
done < "$__toml_file"
6769

6870
return 0
69-
}
71+
}

0 commit comments

Comments
 (0)