Fix url parsing with trailing slash

Refs: #1545
This commit is contained in:
eikek
2022-07-07 11:31:36 +02:00
parent e9cb3d2b42
commit 2c9e012c96
5 changed files with 22 additions and 12 deletions

View File

@ -50,7 +50,7 @@ object Contact {
p match {
case LenientUri.RootPath => false
case LenientUri.EmptyPath => false
case LenientUri.NonEmptyPath(segs) =>
case LenientUri.NonEmptyPath(segs, _) =>
Ident.fromString(segs.last).isRight &&
segs.init.takeRight(3) == List("open", "upload", "item")
}