We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2a2f1f commit 4564798Copy full SHA for 4564798
1 file changed
src/utils/network_utils.js
@@ -66,7 +66,7 @@ let NetworkUtils = {
66
getAddressAndPortFromUri(uriString) {
67
let regexStr = /(?:http:\/\/|rosrpc:\/\/)?([a-zA-Z\d\-.:]+):(\d+)/;
68
let match = uriString.match(regexStr);
69
- if (match.length !== 3) {
+ if (match === null) {
70
throw new Error ('Unable to find host and port from uri ' + uriString + ' with regex ' + regexStr);
71
}
72
// else
0 commit comments