@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/compat/v2.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koumoul/vjsf",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
5
5
  "scripts": {
6
6
  "test": "vitest run",
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