update hyperdown

This commit is contained in:
joyqi
2021-07-05 15:44:33 +08:00
parent cb4778d6c4
commit 3da4d660ec
3 changed files with 11 additions and 9 deletions
+2 -1
View File
@@ -1145,9 +1145,10 @@
parseTitle = false;
}
title = null;
url = trim(url);
if (parseTitle) {
pos = url.indexOf(' ');
if (pos > 0) {
if (pos >= 0) {
title = htmlspecialchars(trim(url.substring(pos + 1), ' "\''));
url = url.substring(0, pos);
}