update
This commit is contained in:
+2
-1
@@ -29,7 +29,8 @@ function isSsh(input) {
|
||||
}
|
||||
|
||||
// TODO This probably could be improved :)
|
||||
return input.indexOf("@") < input.indexOf(":");
|
||||
var urlPortPattern = new RegExp('\.([a-zA-Z\\d]+):(\\d+)\/');
|
||||
return !input.match(urlPortPattern) && input.indexOf("@") < input.indexOf(":");
|
||||
}
|
||||
|
||||
module.exports = isSsh;
|
||||
Reference in New Issue
Block a user