Recognize V-suffixed clip variants

This commit is contained in:
Mikei386 committed 2026-06-05 07:58:57 +02:00
1 parent c7ae3fcc59
commit a6d88a18d9
1 file changed
+1 -1
+1 -1
View File
@@ -725,7 +725,7 @@ final class VideoProcessor: ObservableObject {
}
private func parseDuplicateSuffix(from filenameWithoutExtension: String) -> (base: String, version: Int)? {
let pattern = #"^(.*\S)\s+(\d{1,3})$"#
let pattern = #"^(.*\S)\s+(?:V)?(\d{1,3})$"#
guard let regex = try? NSRegularExpression(pattern: pattern),
let match = regex.firstMatch(
in: filenameWithoutExtension,