Fix handling of missing opts

This commit is contained in:
Yarmo Mackenbach 2020-10-24 15:33:25 +02:00
parent b0cf3a9458
commit 74d92511ec

View file

@ -16,6 +16,7 @@ limitations under the License.
const reURI = /^dns:([a-zA-Z0-9\.\-\_]*)(?:\?(.*))?/
const processURI = (uri, opts) => {
if (!opts) { opts = {} }
const match = uri.match(reURI)
return {