提交 61e5a01b 编写于 作者: P pissang

test: case insensitive search

上级 bf3a0ae1
......@@ -103,8 +103,9 @@ const app = new Vue({
return this.fullTests.slice().sort(sortFunc);
}
let searchString = this.searchString.toLowerCase();
return this.fullTests.filter(test => {
return test.name.match(this.searchString);
return test.name.toLowerCase().match(searchString);
}).sort(sortFunc);
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册