仪表盘
版本库
文件存储
活动
搜索
登录
productDev
/
diandongche
电动车项目
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
提交
doum
7 天以前
6805f6e09455c51e0e38d170538fbf757594d3c4
[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] || '';
};