mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-06 22:19:25 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
1bfbb7ff83
@ -45,7 +45,7 @@ export default class extends Instruction {
|
|||||||
['x-validator'](value, rules, { form }) {
|
['x-validator'](value, rules, { form }) {
|
||||||
const { values } = form;
|
const { values } = form;
|
||||||
const { evaluate } = evaluators.get(values.engine) as Evaluator;
|
const { evaluate } = evaluators.get(values.engine) as Evaluator;
|
||||||
const exp = value.trim().replace(/{{([^{}]+)}}/g, ' 1 ');
|
const exp = value.trim().replace(/{{([^{}]+)}}/g, ' "1" ');
|
||||||
try {
|
try {
|
||||||
evaluate(exp);
|
evaluate(exp);
|
||||||
return '';
|
return '';
|
||||||
|
@ -409,7 +409,7 @@ export default class extends Instruction {
|
|||||||
['x-validator'](value, rules, { form }) {
|
['x-validator'](value, rules, { form }) {
|
||||||
const { values } = form;
|
const { values } = form;
|
||||||
const { evaluate } = evaluators.get(values.engine);
|
const { evaluate } = evaluators.get(values.engine);
|
||||||
const exp = value.trim().replace(/{{([^{}]+)}}/g, ' 1 ');
|
const exp = value.trim().replace(/{{([^{}]+)}}/g, ' "1" ');
|
||||||
try {
|
try {
|
||||||
evaluate(exp);
|
evaluate(exp);
|
||||||
return '';
|
return '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user