仪表盘
版本库
文件存储
活动
搜索
登录
productDev
/
diandongche
电动车项目
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
新增退款
doum
昨天
b29d7b6bbe8256d5e95fb878adf06ffa9abb449a
[productDev/diandongche.git]
/
web
/
node_modules
/
axios
/
lib
/
helpers
/
parseProtocol.js
1
2
3
4
5
6
'use strict';
module.exports = function parseProtocol(url) {
var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
return match && match[1] || '';
};