Skip to content

Commit 16adee2

Browse files
authored
Merge pull request #11 from orchetect/dev
Bumped dependency version to account for RegEx helper method changes
2 parents e590144 + c7c481d commit 16adee2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let package = Package(
1818
dependencies: [
1919

2020
// utility/support code:
21-
.package(url: "https://github.com/orchetect/OTCore", from: "1.1.0"),
21+
.package(url: "https://github.com/orchetect/OTCore", from: "1.1.6"),
2222

2323
// console progress module for dev tests:
2424
.package(url: "https://github.com/orchetect/SegmentedProgress", from: "1.0.1")

Sources/TimecodeKit/Data Interchange/Timecode String.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,10 @@ extension Timecode {
283283

284284
let pattern = #"^(\d+)??[\:\s]??(\d+)[\:](\d+)[\:](\d+)[\:\;](\d+)[\.]??(\d+)??$"#
285285

286-
let matches = string.regexMatches(captureGroupsFromPattern: pattern)
287-
286+
let matches = string
287+
.regexMatches(captureGroupsFromPattern: pattern)
288+
.dropFirst()
289+
288290
// attempt to convert strings to integers, preserving indexes and preserving nils
289291
// essentially converting [String?] to [Int?]
290292

0 commit comments

Comments
 (0)