projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Version 1
[yaffs-website]
/
node_modules
/
is-absolute-url
/
index.js
1
'use strict';
2
module.exports = function (url) {
3
if (typeof url !== 'string') {
4
throw new TypeError('Expected a string');
5
}
6
7
return /^(?:\w+:)\/\//.test(url);
8
};