initial commit
This commit is contained in:
8
node_modules/is-absolute-url/index.js
generated
vendored
Normal file
8
node_modules/is-absolute-url/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
module.exports = function (url) {
|
||||
if (typeof url !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
return /^[a-z][a-z0-9+.-]*:/.test(url);
|
||||
};
|
||||
Reference in New Issue
Block a user