Replace URL with URI

This commit is contained in:
Yarmo Mackenbach 2020-10-24 11:20:34 +02:00
parent b78d7a7ce9
commit 012ef682e6
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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