Fix image version read from url
This commit is contained in:
parent
a474b509c1
commit
7a969185e9
@ -181,7 +181,7 @@ final class CapServer: ServerOwner {
|
||||
return
|
||||
}
|
||||
var sorted: [(id: Int, url: URL)] = images.compactMap {
|
||||
guard let id = Int($0.deletingPathExtension().lastPathComponent) else {
|
||||
guard let id = Int($0.deletingPathExtension().lastPathComponent.components(separatedBy: "-").last!) else {
|
||||
return nil
|
||||
}
|
||||
return (id, $0)
|
||||
|
Loading…
Reference in New Issue
Block a user