feature(edit) regExp: match -> test

This commit is contained in:
coderaiser 2014-08-22 08:52:36 -04:00
parent a104de3509
commit ab95ec2b93

View file

@ -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);
}