Skip to content

Commit

Permalink
Parse process name from microstackshots format correctly, for #39
Browse files Browse the repository at this point in the history
  • Loading branch information
inket committed Aug 27, 2024
1 parent 025da9e commit c4d94f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MacSymbolicator/Models/ReportProcess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public class ReportProcess {
let binaryImages: [BinaryImage]
let frames: [StackFrame]

private static let processSectionRegex = #"^(Process:.*?)(?=\z|^Process:)"#
private static let processNameRegex = #"^Process:\s*(.+?)\s*\["#
private static let processSectionRegex = #"^((?:Process|Command):.*?)(?=\z|^(?:Process|Command):)"#
private static let processNameRegex = #"^(?:Process|Command):\s*(.+?)\s*\["#

lazy var binariesForSymbolication: [BinaryImage] = {
let uuids = frames.map { $0.binaryImage }
Expand Down

0 comments on commit c4d94f1

Please sign in to comment.