Files
ThreatHunt/frontend/node_modules/axios/lib/helpers/parseProtocol.js
mblanke 3c7e9b9eee CLAUDE branch
i made have screwed the pooch with this
2025-06-17 07:43:33 -04:00

7 lines
151 B
JavaScript

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