utility.js 183 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 /** * 链接自适应协议 * @author: lq <qi.li@yoho.cn> * @date: 2017/04/06 */ exports.autoProtocol = function(src) { return (src || '').replace(/^(http:|https:)/, ''); };