Skip to content

Commit 4a3b183

Browse files
author
Robert Gummesson
committed
Fixed some recently introduced issues
1 parent 75f0e19 commit 4a3b183

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

BuildTimeAnalyzer/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0.7</string>
20+
<string>1.0.8</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

BuildTimeAnalyzer/LogProcessor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ extension LogProcessorProtocol {
5151
let range = NSMakeRange(0, (text as NSString).length)
5252
guard let match = regex.firstMatch(in: text, options: [], range: range) else { continue }
5353

54-
let timeString = text[...text.index(text.startIndex, offsetBy: match.range.length - 4)]
54+
let timeString = text[..<text.index(text.startIndex, offsetBy: match.range.length - 4)]
5555
if let time = Double(timeString) {
56-
let value = String(text[...text.index(text.startIndex, offsetBy: match.range.length - 1)])
56+
let value = String(text[text.index(text.startIndex, offsetBy: match.range.length - 1)...])
5757
if var rawMeasure = rawMeasures[value] {
5858
rawMeasure.time += time
5959
rawMeasure.references += 1

0 commit comments

Comments
 (0)