From ad87145c424571085b7ce3c4549b1a97ae31297f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 28 Oct 2014 09:28:49 -0400 Subject: [PATCH] refactor(client) loadModule: isContainStr -> RegExp --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index e4ad0486..8b00ab46 100644 --- a/lib/client.js +++ b/lib/client.js @@ -109,7 +109,7 @@ var Util, DOM, CloudFunc, join; } } - isContain = Util.isContainStr(path, '.js'); + isContain = /\.js/.test(path); if (!isContain) path += '.js';