bnoguchi / mongoose-types

Additional handy types for mongoose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

url regex is too restrictive

mwawrusch opened this issue · comments

The url regex checks for ftp, http,https, however there are a lot more protocols out there, so it would be best to check for word only (2 or more chars). For example, chrome uses: chrome:/ which is used as the return url when doing the oauth2 dance from within a plugin.