From ab95ec2b9359a2c9898ac30e40ea2045a978a7b4 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 22 Aug 2014 08:52:36 -0400 Subject: [PATCH] feature(edit) regExp: match -> test --- lib/client/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/edit.js b/lib/client/edit.js index 404492cd..51938cc1 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -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); }