We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75414e2 commit 4959a4aCopy full SHA for 4959a4a
index.js
@@ -52,7 +52,7 @@ module.exports = {
52
},
53
createClient: async function(options) {
54
if(options.uri) {
55
- var pattern = /^((mqtt[s]?|ws[s]?)?:(\/\/)([a-zA-Z_\.]*):?(\d+))$/;
+ var pattern = /^((mqtt[s]?|ws[s]?)?:(\/\/)([0-9a-zA-Z_\.]*):?(\d+))$/;
56
var matches = options.uri.match(pattern);
57
var protocol = matches[2];
58
var host = matches[4];
0 commit comments