UNPKG

hexo-filter-probe-image-size

Version:
10 lines (7 loc) 190 B
const remoteRegex = new RegExp('(^https?:)?//'); /** * @param {string} path * @return {boolean} */ const isRemotePath = (path) => remoteRegex.test(path); module.exports = isRemotePath;