feature(rest) regExp: match -> test

This commit is contained in:
coderaiser 2014-08-22 09:01:08 -04:00
parent 193322da5f
commit ea1ca3eb84

View file

@ -60,8 +60,8 @@
apiURL = CloudFunc.apiURL;
name = ponse.getPathName(request);
regExp = '^' + apiURL,
is = name.match(regExp);
regExp = new RegExp('^' + apiURL),
is = regExp.test(name);
if (!is) {
next();