Commit 31f0bb60 authored by Medicean's avatar Medicean

(Fix:ShellManager) Fix #157

parent c1e9bcea
......@@ -2,6 +2,12 @@
> 有空会补补BUG、添添新功能。
> 同时也欢迎大家的参与!感谢各位朋友的支持! .TAT.
## `v(2.1.1)`
### Shell 管理
* 修复搜索数据时正则表达式输入错误导致crash 问题 #157
## 2019/04/24 `v(2.1.0)`
### 重要提醒
......
......@@ -46,6 +46,14 @@ class ShellManager {
reloadData(arg = {}) {
if(this.searchPop.isVisible()) {
let sdata = this.searchForm.getValues();
try {
RegExp(sdata['searchtext']);
} catch(e) {
var tmpstr = sdata['searchtext'].replace(/([\$\(\)\*\+\.\[\?\\\^\{\|])/g, function($, $1){
return `\\${$1}`;
});
sdata['searchtext'] = tmpstr;
}
var searchObj = {};
switch(sdata['searchtype']) {
case 'all':
......
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