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