Skip to content

Commit

Permalink
Merge pull request #211 from cgonzalez/master
Browse files Browse the repository at this point in the history
Allow ssh links
  • Loading branch information
annejan authored Oct 19, 2016
2 parents e732904 + fcbf978 commit c0f21e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ void MainWindow::readyRead(bool finished = false) {
}
}

output.replace(QRegExp("((?:https?|ftp)://\\S+)"), "<a href=\"\\1\">\\1</a>");
output.replace(QRegExp("((?:https?|ftp|ssh)://\\S+)"), "<a href=\"\\1\">\\1</a>");
output.replace(QRegExp("\n"), "<br />");
if (!ui->textBrowser->toPlainText().isEmpty())
output = ui->textBrowser->toHtml() + output;
Expand Down

0 comments on commit c0f21e6

Please sign in to comment.