source:
node_modules/axios/lib/helpers/parseProtocol.js@
d24f17c
Last change on this file since d24f17c was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 151 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | 'use strict'; |
2 | ||
3 | export default function parseProtocol(url) { | |
4 | const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); | |
5 | return match && match[1] || ''; | |
6 | } |
Note:
See TracBrowser
for help on using the repository browser.