diff --git a/Sources/GrowthLapse/VideoProcessor.swift b/Sources/GrowthLapse/VideoProcessor.swift index 4995013..c20364c 100644 --- a/Sources/GrowthLapse/VideoProcessor.swift +++ b/Sources/GrowthLapse/VideoProcessor.swift @@ -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,