mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(edit) regExp: match -> test
This commit is contained in:
parent
a104de3509
commit
ab95ec2b93
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ var CloudCmd, Util, join, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip,
|
|||
regExp = new RegExp(regStr);
|
||||
|
||||
if (isStr)
|
||||
isMatch = mode.match(regExp);
|
||||
isMatch = regExp.test(mode);
|
||||
|
||||
Session.setUseWorker(isMatch);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue