validate.js 184 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 /** * Created by PanJiaChen on 16/11/18. */ /** * @param {string} path * @returns {Boolean} */ export function isExternal(path) { return /^(https?:|mailto:|tel:)/.test(path) }