ignore empty string in exact_path

This commit is contained in:
craff 2021-12-17 22:08:01 -10:00
parent 613c9ae7c3
commit 8fc22ff07e

View file

@ -752,6 +752,7 @@ module Route = struct
let exact_path (s:string) tail =
let rec fn = function
| [] -> tail
| ""::ls -> fn ls
| s::ls -> exact s @/ fn ls
in
fn (String.split_on_char '/' s)