Files
30-seconds-of-code/test/isAbsoluteURL/isAbsoluteURL.js
2018-01-09 06:09:49 -05:00

1 line
56 B
JavaScript

module.exports = str => /^[a-z][a-z0-9+.-]*:/.test(str);