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 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue