From 3d5ddacc0c8ad4c98746fcaaa93555f7d7a001dc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 18 Jun 2014 09:19:14 -0400 Subject: [PATCH] fix(files) set: regExp.match -> name.match --- lib/client/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/files.js b/lib/client/files.js index 16f14d22..90e22055 100644 --- a/lib/client/files.js +++ b/lib/client/files.js @@ -46,7 +46,7 @@ var Util, DOM; this.set = function(name, data, callback) { var strFiles = FILES_JSON + FILES_HTML, regExp = new RegExp(strFiles), - isFile = regExp.match(regExp); + isFile = name.match(regExp); Util.checkArgs(arguments, [name, data]);