Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
amitesh11
/
pose
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
pose
/
web
/
client
/
node_modules
/
axios
/
lib
/
helpers
/
parseProtocol.js
amitesh11
Upload 3019 files
369fac9
verified
about 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
151 Bytes
'use strict'
;
export
default
function
parseProtocol
(
url
) {
const
match =
/^([-+\w]{1,25})(:?\/\/|:)/
.
exec
(url);
return
match && match[
1
] ||
''
;
}