-
-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
When the path contains the dot, the append to array function has an unexpected behaviour
For example, givin the structure
{
"site":{
"content":{
"it":{
"about-us.md":[]
}
}
}
}
the instruction
db.push ("/site/content/it/about-us.md[]", {"code":0, "value": 1})
result in
{
"site":{
"content":{
"it":{
"about-us.md":[],
"about-us.md[]" : {"code":0, "value": 1}
}
}
}
}
instead of
{
"site":{
"content":{
"it":{
"about-us.md":[ {"code":0, "value": 1}]
}
}
}
}