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