hrms-manual/node_modules/axios/lib/helpers/parseProtocol.js
2023-09-06 14:51:44 +07:00

6 lines
152 B
JavaScript

'use strict';
module.exports = function parseProtocol(url) {
var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
return match && match[1] || '';
};