@koumoul/vjsf 3.13.0 → 3.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/compat/v2.js +1 -1
package/package.json
CHANGED
package/src/compat/v2.js
CHANGED
|
@@ -19,7 +19,7 @@ const expressionKeyMappings = {
|
|
|
19
19
|
*/
|
|
20
20
|
const fixSimpleExpression = (expression) => {
|
|
21
21
|
// looks like a simple expression is missing the data. prefix
|
|
22
|
-
if (expression.match(/^[a-z.]*$/i) && !['data', 'context', 'rootData', 'parent'].some(key => expression.startsWith(key + '.'))) {
|
|
22
|
+
if (expression.match(/^[a-z.0-9]*$/i) && !['data', 'context', 'rootData', 'parent'].some(key => expression.startsWith(key + '.'))) {
|
|
23
23
|
expression = 'rootData.' + expression
|
|
24
24
|
}
|
|
25
25
|
// replace a array item referenced with dot notation to bracket notation
|