This commit is contained in:
zznty
2024-06-02 21:49:11 +07:00
parent 4146027cb7
commit 529fe260da
585 changed files with 1685 additions and 1214 deletions

View File

@@ -0,0 +1,6 @@
'use strict';
export default function parseProtocol(url) {
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
return match && match[1] || '';
}