mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(route) Util.strCmp -> RegExp.test
This commit is contained in:
parent
7d846cfe2e
commit
1f01e77072
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@
|
|||
Util.check(arguments, ['req', 'res', 'callback']);
|
||||
|
||||
name = ponse.getPathName(request);
|
||||
isAuth = Util.strCmp(name, ['/auth', '/auth/github']);
|
||||
isAuth = RegExp('^(/auth|/auth/github)$').test(name);
|
||||
isFS = RegExp('^/$|^' + FS).test(name);
|
||||
|
||||
p = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue