Files
dndmaster/test/node_modules/axios/lib/helpers/parseProtocol.js
Marces Zastrow e498ac886e + Test
Added a test programm to upload images for characters
2025-01-09 13:19:38 +01:00

7 lines
151 B
JavaScript

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