1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

parser: fix url parse regression

This commit is contained in:
William Casarin 2023-11-17 08:57:36 -08:00
parent 20299615ba
commit 1fcbba5041

View File

@ -205,9 +205,7 @@ static int parse_url(struct cursor *cur, struct note_block *block) {
copy_cursor(cur, &path_cur);
// skip leading /
if (!cursor_skip(&path_cur, 1)) {
return 0;
}
cursor_skip(&path_cur, 1);
if (!consume_url_path(cur)) {
cur->p = start;