修复needLogin非function错误
Merge pull request #2 from coolme200/fix-needLogin-notfun-err

fixed needLogin is not function bug when match is not regex.