mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 00:50:59 +00:00
refactor(client) loadModule: isContainStr -> RegExp
This commit is contained in:
parent
216d98816f
commit
ad87145c42
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ var Util, DOM, CloudFunc, join;
|
|||
}
|
||||
}
|
||||
|
||||
isContain = Util.isContainStr(path, '.js');
|
||||
isContain = /\.js/.test(path);
|
||||
|
||||
if (!isContain)
|
||||
path += '.js';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue