UNPKG

lenye_base

Version:

基础方法

9 lines (6 loc) 191 B
'use strict'; /** * Returns true if the given string is an absolute URL, false otherwise. */ var isAbsoluteURL = str => /^[a-z][a-z0-9+.-]*:/.test(str); module.exports = isAbsoluteURL;