Security update for permissions_by_term
[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 };