feature(join) regExp: match -> test

This commit is contained in:
coderaiser 2014-08-22 08:58:30 -04:00
parent f2cb797ae2
commit 193322da5f

View file

@ -31,8 +31,8 @@
path = ponse.getPathName(req),
regExp = new RegExp('^' + PREFIX + '(:|/)'),
regExpFile = new RegExp('^' + PREFIX + '/join.js$'),
isJoin = path.match(regExp),
isJoinFile = path.match(regExpFile);
isJoin = regExp.test(path),
isJoinFile = regExpFile.test(path);
if (!options)
options = {};