projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sh/jshn.sh: allow numbers in identifiers for json_get_var()
[project/libubox.git]
/
sh
/
jshn.sh
diff --git
a/sh/jshn.sh
b/sh/jshn.sh
index
117da67
..
7228adf
100644
(file)
--- a/
sh/jshn.sh
+++ b/
sh/jshn.sh
@@
-100,7
+100,7
@@
json_get_type() {
json_get_var() {
local dest="$1"
- local var="$(echo -n "$2" | tr -C '[a-zA-Z_]' _)"
+ local var="$(echo -n "$2" | tr -C '[a-zA-Z
0-9
_]' _)"
eval "export -- \"$dest=\${${JSON_CUR}_$var}\""
}