From 012ef682e636522dd8665bca775059e74ceddad6 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 24 Oct 2020 11:20:34 +0200 Subject: [PATCH] Replace URL with URI --- src/serviceproviders/dns.js | 6 +++--- src/serviceproviders/xmpp.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/serviceproviders/dns.js b/src/serviceproviders/dns.js index 1c11673..0168dbf 100644 --- a/src/serviceproviders/dns.js +++ b/src/serviceproviders/dns.js @@ -1,7 +1,7 @@ const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/ -const processURL = (uri, opts) => { - const match = uri.match(reURL) +const processURI = (uri, opts) => { + const match = uri.match(reURI) return { type: "domain", @@ -33,5 +33,5 @@ const tests = [ ] exports.reURI = reURI -exports.processURL = processURL +exports.processURI = processURI exports.tests = tests diff --git a/src/serviceproviders/xmpp.js b/src/serviceproviders/xmpp.js index 3351f27..1762e7c 100644 --- a/src/serviceproviders/xmpp.js +++ b/src/serviceproviders/xmpp.js @@ -1,6 +1,6 @@ const reURI = /^xmpp:([a-zA-Z0-9\.\-\_]*)@([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/ -const processURL = (uri, opts) => { +const processURI = (uri, opts) => { const match = uri.match(reURI) return { @@ -33,5 +33,5 @@ const tests = [ ] exports.reURI = reURI -exports.processURL = processURL +exports.processURI = processURI exports.tests = tests