forked from Mirrors/doipjs
Replace URL with URI
This commit is contained in:
parent
b78d7a7ce9
commit
012ef682e6
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
|
const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
|
||||||
|
|
||||||
const processURL = (uri, opts) => {
|
const processURI = (uri, opts) => {
|
||||||
const match = uri.match(reURL)
|
const match = uri.match(reURI)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: "domain",
|
type: "domain",
|
||||||
|
@ -33,5 +33,5 @@ const tests = [
|
||||||
]
|
]
|
||||||
|
|
||||||
exports.reURI = reURI
|
exports.reURI = reURI
|
||||||
exports.processURL = processURL
|
exports.processURI = processURI
|
||||||
exports.tests = tests
|
exports.tests = tests
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const reURI = /^xmpp:([a-zA-Z0-9\.\-\_]*)@([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
|
const reURI = /^xmpp:([a-zA-Z0-9\.\-\_]*)@([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
|
||||||
|
|
||||||
const processURL = (uri, opts) => {
|
const processURI = (uri, opts) => {
|
||||||
const match = uri.match(reURI)
|
const match = uri.match(reURI)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -33,5 +33,5 @@ const tests = [
|
||||||
]
|
]
|
||||||
|
|
||||||
exports.reURI = reURI
|
exports.reURI = reURI
|
||||||
exports.processURL = processURL
|
exports.processURI = processURI
|
||||||
exports.tests = tests
|
exports.tests = tests
|
||||||
|
|
Loading…
Reference in a new issue