Recognize V-suffixed clip variants
This commit is contained in:
@@ -725,7 +725,7 @@ final class VideoProcessor: ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func parseDuplicateSuffix(from filenameWithoutExtension: String) -> (base: String, version: Int)? {
|
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),
|
guard let regex = try? NSRegularExpression(pattern: pattern),
|
||||||
let match = regex.firstMatch(
|
let match = regex.firstMatch(
|
||||||
in: filenameWithoutExtension,
|
in: filenameWithoutExtension,
|
||||||
|
|||||||
Reference in New Issue
Block a user