Last active
December 21, 2015 21:29
-
-
Save sajadshafizadeh/ebf7ef7cfcdb7d52db6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Valid ---------------- without subdomain | |
www.example.com | |
http://example.com | |
http://www.example.com | |
https://example.com | |
https://www.example.com | |
// Valid ---------------- with subdomain | |
www.sub.example.com | |
http://sub.example.com | |
http://www.sub.example.com | |
https://sub.example.com | |
https://www.sub.example.com | |
// Invalid ---------------- | |
/* all the rest | |
** even those urls which start with subdomain like this gist.github.com | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment