mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
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 processURI = (uri, opts) => {
|
||||
if (!opts) { opts = {} }
|
||||
const match = uri.match(reURI)
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue