From b9aca19cccf9fd85a05d2ae32846b5b4f25a4dc1 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 4 Apr 2023 19:07:33 +0200 Subject: Added 147 files (automated) --- .../addressbook/node_modules/axios/lib/helpers/parseProtocol.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 includes/external/addressbook/node_modules/axios/lib/helpers/parseProtocol.js (limited to 'includes/external/addressbook/node_modules/axios/lib/helpers/parseProtocol.js') diff --git a/includes/external/addressbook/node_modules/axios/lib/helpers/parseProtocol.js b/includes/external/addressbook/node_modules/axios/lib/helpers/parseProtocol.js new file mode 100644 index 0000000..586ec96 --- /dev/null +++ b/includes/external/addressbook/node_modules/axios/lib/helpers/parseProtocol.js @@ -0,0 +1,6 @@ +'use strict'; + +export default function parseProtocol(url) { + const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); + return match && match[1] || ''; +} -- cgit