forked from Mirrors/doipjs
Fix handling of missing opts
This commit is contained in:
parent
b0cf3a9458
commit
74d92511ec
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ limitations under the License.
|
||||||
const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
|
const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
|
||||||
|
|
||||||
const processURI = (uri, opts) => {
|
const processURI = (uri, opts) => {
|
||||||
|
if (!opts) { opts = {} }
|
||||||
const match = uri.match(reURI)
|
const match = uri.match(reURI)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue