Merge branch 'main' into next

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 '';