nl_tokens: isSsh Checks if an input value is a ssh url or not .
pl_tokens: function isSsh ( <mask> ) { if ( Array . isArray ( input ) ) { return input . indexOf ( "ssh" ) !== - 1 || input . indexOf ( "rsync" ) !== - 1 ; } if ( typeof input !== "string" ) { return false ; } var prots = protocols ( input ) ; input = input . substring ( input . indexOf ( "://" ) + 3 ) ; if ( isSsh ( prots ) ) { return true ; } // TODO This probably could be improved :) return input . indexOf ( "@" ) < input . indexOf ( ":" ) ; }