Improve JSON parser

This commit is contained in:
Steven Penny 2014-06-14 19:07:57 -05:00
parent a58f4b69ef
commit 67658a514a
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ apt-search () {
jn () {
# parse json
awk '$1 ~ key {print $2}' RS='"?[,{}]' FS='": ?"?' key="$1" "$2"
awk '$1 ~ key {print $2}' RS='([{}]|"?, ?")' FS='": ?"?' key="$1" "$2"
}
proxy () {