doum
4 天以前 c5c4f201eedfcf374008238dce7afc84f8200ea4
1
2
3
4
5
6
'use strict';
 
module.exports = function parseProtocol(url) {
  var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
  return match && match[1] || '';
};