parser: fix url parse regression
This commit is contained in:
@@ -205,9 +205,7 @@ static int parse_url(struct cursor *cur, struct note_block *block) {
|
|||||||
copy_cursor(cur, &path_cur);
|
copy_cursor(cur, &path_cur);
|
||||||
|
|
||||||
// skip leading /
|
// skip leading /
|
||||||
if (!cursor_skip(&path_cur, 1)) {
|
cursor_skip(&path_cur, 1);
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!consume_url_path(cur)) {
|
if (!consume_url_path(cur)) {
|
||||||
cur->p = start;
|
cur->p = start;
|
||||||
|
|||||||
Reference in New Issue
Block a user