Files
rspade_system/node_modules/axios/lib/helpers/parseProtocol.js
root 3ed8517b2a Framework updates
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-04 23:20:19 +00:00

7 lines
153 B
JavaScript
Executable File

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