Merge branch 'main' into next
Some checks failed
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Has been cancelled

This commit is contained in:
GitHub Actions Bot 2024-07-31 01:56:42 +00:00
commit 1bfbb7ff83
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export default class extends Instruction {
['x-validator'](value, rules, { form }) {
const { values } = form;
const { evaluate } = evaluators.get(values.engine) as Evaluator;
const exp = value.trim().replace(/{{([^{}]+)}}/g, ' 1 ');
const exp = value.trim().replace(/{{([^{}]+)}}/g, ' "1" ');
try {
evaluate(exp);
return '';

View File

@ -409,7 +409,7 @@ export default class extends Instruction {
['x-validator'](value, rules, { form }) {
const { values } = form;
const { evaluate } = evaluators.get(values.engine);
const exp = value.trim().replace(/{{([^{}]+)}}/g, ' 1 ');
const exp = value.trim().replace(/{{([^{}]+)}}/g, ' "1" ');
try {
evaluate(exp);
return '';