no message

This commit is contained in:
A1300399510
2024-01-03 19:11:30 +08:00
parent 3778105266
commit 2ddfc65699
941 changed files with 140454 additions and 26 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] || '';
}