@geeeger/is-http-url
v2.0.7
Published
判断输入链接是否为http或https链接
Downloads
3
Readme
is-http-url
判断链接是否为http链接
Usage
import is from '@geeeger/is-http-url';
describe('@geeeger/is-http-url module', () => {
it('should pass', () => {
expect(is('http://www.baidu.com')).toBeTruthy();
expect(is('https://www.baidu.com')).toBeTruthy();
expect(is('//www.baidu.com')).toBeTruthy();
expect(is('test://https://')).toBeFalsy();
});
});