fix(join) regexp: ":" -> "(:|/)"

This commit is contained in:
coderaiser 2014-08-15 10:26:36 -04:00
parent 8ed21dd853
commit 383a06d9a4

View file

@ -29,7 +29,7 @@
exec = Util.exec,
read = exec.with(readPipe, req, res),
path = ponse.getPathName(req),
regExp = new RegExp('^' + PREFIX + ':'),
regExp = new RegExp('^' + PREFIX + '(:|/)'),
regExpFile = new RegExp('^' + PREFIX + '/join.js$'),
isJoin = path.match(regExp),
isJoinFile = path.match(regExpFile);