allow += for jsshDB, this allows adding to keys without overwrite

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-05-17 13:19:21 +02:00
parent 6531fecfed
commit bdb50c8716
5 changed files with 6 additions and 6 deletions

View File

@ -224,6 +224,6 @@ It features background tasks and interactive chats, and can serve as an interfac
<p>@Gnadelwartz</p>
<h2>That's it!</h2>
<p>If you feel that there's something missing or if you found a bug, feel free to submit a pull request!</p>
<h4>$$VERSION$$ v0.94-4-gcbce60a</h4>
<h4>$$VERSION$$ v0.94-5-g6531fec</h4>
</body>
</html>

View File

@ -183,4 +183,4 @@ This may happen if to many wrong requests are sent to api.telegram.org, e.g. usi
If you feel that there's something missing or if you found a bug, feel free to submit a pull request!
#### $$VERSION$$ v0.94-4-gcbce60a
#### $$VERSION$$ v0.94-5-g6531fec

View File

@ -257,4 +257,4 @@ tor proxy on your server you may uncomment the ```BASHBOT_CURL_ARGS``` line in
If you feel that there's something missing or if you found a bug, feel free to
submit a pull request!
#### $$VERSION$$ v0.94-4-gcbce60a
#### $$VERSION$$ v0.94-5-g6531fec

View File

@ -11,7 +11,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v0.94-0-gaaa71c8
#### $$VERSION$$ v0.94-5-g6531fec
#
# Exit Codes:
# - 0 sucess (hopefully)
@ -344,7 +344,7 @@ JsonGetValue() {
# $1 ARRAY name, must be declared with "declare -A ARRAY" before calling
Json2Array() {
# shellcheck source=./commands.sh
[ -z "$1" ] || source <( printf "$1"'=( %s )' "$(sed -E -n -e '/\["[-0-9a-zA-Z_,."]+"\]\t/ s/\t/=/gp' -e 's/=(true|false)/="\1"/')" )
[ -z "$1" ] || source <( printf "$1"'=( %s )' "$(sed -E -n -e '/\["[-0-9a-zA-Z_,."]+"\]\+*\t/ s/\t/=/gp' -e 's/=(true|false)/="\1"/')" )
}
# output ARRAY as JSON.sh style data
# $1 ARRAY name, must be declared with "declare -A ARRAY" before calling

View File

@ -98,5 +98,5 @@ The old format is supported for backward compatibility, but may fail for corner
#### [Next Create Bot](1_firstbot.md)
#### $$VERSION$$ v0.94-4-gcbce60a
#### $$VERSION$$ v0.94-5-g6531fec