Skip to content

Commit d7acc1a

Browse files
author
Robert Gummesson
authored
Merge pull request #72 from RobertGummesson/Fix-for-some-bugs-introduced-in-v1.0.7
Fixed some recently introduced issues
2 parents 75f0e19 + 4a3b183 commit d7acc1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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)