You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem appears when the dynamicKey has . or a - character (maybe also a few others, but these ones I spotted in my project). When we change the key in such a way the output looks like this:
Current behavior
When I try to generate a command for an Update/UpdateRemove/Condition with a key in an object which is a simple string it works just fine:
The problem appears when the
dynamicKey
has.
or a-
character (maybe also a few others, but these ones I spotted in my project). When we change the key in such a way the output looks like this:As you can see, the object's nesting is broken and the update expression is generated incorrectly (the
+
sign has changed to the-
sign).Expected behavior
There should be a possibility to deal with such keys so the output would look like this:
Potential fix
Maybe there should be a possibility to wrap such keys in some special characters so dynoexpr could know that this string is a single key, e.g.:
`object."${dynamicKey}".value`
The text was updated successfully, but these errors were encountered: