mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(join) regExp: match -> test
This commit is contained in:
parent
f2cb797ae2
commit
193322da5f
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue