domain-regex.js
JavaScript Domain Regex
Installation
<script src="domain-regex.js"></script>
or
npm install --save domain-regex.js
require('domain-regex.js');
Usage
domainRegex.test('htt://githubcom');
domainRegex.test('http://githubcom');
domainRegex.test('http//githubcom');
domainRegex.test('http:/githubcom');
domainRegex.test('http:/github.com123');
domainRegex.test('22http://github.com');
domainRegex.test('github.com');
domainRegex.test('http://github.com');
domainRegex.test('http://www.github.com');
domainRegex.test('https://github.com');
domainRegex.test('https://www.github.com');
domainRegex.test('짧.한국');
domainRegex.test('http://짧.한국');
domainRegex.test('https://www.facebook.com/소행성-소녀-387632298355712');
License
MIT
Author
Young Jae Sim