• File: parseProtocol.js
  • Full Path: /var/www/nodejs/Notifications_Imali_API/node_modules/axios/lib/helpers/parseProtocol.js
  • Date Modified: 10/26/1985 3:15 PM
  • File size: 152 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'use strict';

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