小小儁爺
2025-05-14 3afe42dec5534422f2a99292542fbba86883b527
1
2
3
4
5
6
'use strict';
 
export default function parseProtocol(url) {
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
  return match && match[1] || '';
}