Commit f968896b authored by limingzhe's avatar limingzhe

fix: debug

parent 0ed71cad
......@@ -934,10 +934,12 @@ cc.Class({
for (let i=0; i<this.data.rows.length; i++) {
const text = this.data.rows[i].text_en;
const pattern = /^[a-zA-Z]+$/;
const pattern = /^[a-zA-Z]{2,}$/;
if (pattern.test(text)) {
console.log("文本只包含英文字符");
console.log("文本只包含英文字符且长度大于1");
// this.data.rows[i].text_en += "aaaaaa"
rows.push(this.data.rows[i])
} else {
console.log("文本不符合要求");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment