This commit is contained in:
Simon Cruanes 2024-02-28 15:16:14 -05:00
parent 91951ca5a1
commit 5a38ffdce7
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -77,6 +77,7 @@ let split_on_slash s : _ list =
let parse_query s : (_ list, string) result =
let s =
(* skip hash if present *)
match String.index_opt s '#' with
| Some i -> String.sub s (i + 1) (String.length s - i - 1)
| None -> s