Files
screeps-deploy-action/node_modules/axios/lib/helpers/parseProtocol.js
Philipp Horstenkamp 6cf90a20d4
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m15s
npm install + git add -a
2025-12-16 01:09:30 +01:00

7 lines
152 B
JavaScript

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