Commit 637ba10d authored by 李维's avatar 李维

文本输入题型 在对比文字前先去除掉首尾空格

parent 73500d96
......@@ -1798,10 +1798,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else {
if(contentData.isCaseInsensitive) {
// 不区分大小写
right = currentInputText.toLocaleLowerCase() == contentData.inputText.toLocaleLowerCase();
right = currentInputText.toLocaleLowerCase().trim() == contentData.inputText.toLocaleLowerCase().trim();
} else {
// 区分大小写 完全相等
right = currentInputText == contentData.inputText;
right = currentInputText.trim() == contentData.inputText.trim();
}
}
......
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