Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
lzwqx
/
player
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
player
/
node_modules
/
axios
/
lib
/
helpers
/
parseProtocol.js
lzwqx
Upload 813 files
9afd7cc
verified
6 months ago
raw
Copy download link
history
blame
contribute
delete
151 Bytes
'use strict'
;
export
default
function
parseProtocol
(
url
) {
const
match =
/^([-+\w]{1,25})(:?\/\/|:)/
.
exec
(url);
return
match && match[
1
] ||
''
;
}