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