UNPKG

yhtml5-test

Version:

A test framework for front-end projects

9 lines (7 loc) 172 B
'use strict'; module.exports = function (url) { if (typeof url !== 'string') { throw new TypeError('Expected a string'); } return /^[a-z][a-z0-9+.-]*:/.test(url); };