fix(edit) setUseOfWorker: regExp

This commit is contained in:
coderaiser 2014-04-22 11:35:03 -04:00
parent f244d48345
commit 396cb86424

View file

@ -145,7 +145,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip;
function setUseOfWorker(mode) {
var isMatch,
isStr = Util.isString(mode),
regStr = 'coffee/css/html/javascript/json/lua/php/xquery',
regStr = 'coffee|css|html|javascript|json|lua|php|xquery',
regExp = new RegExp(regStr);
if (isStr)