From e979d267f7d959082fe891ce663c3480954ee478 Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Fri, 1 Nov 2024 14:33:22 +0000 Subject: [PATCH] rename --- src/import/instruments.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/import/instruments.ts b/src/import/instruments.ts index 605d8b06..720fc1a7 100644 --- a/src/import/instruments.ts +++ b/src/import/instruments.ts @@ -110,12 +110,12 @@ export function importFromInstrumentsDeepCopy(contents: TextFileContent): Profil const stack: FrameInfoWithWeight[] = [] let cumulativeValue: number = 0 - let firstRowShift: number = rows[0]['Symbol Names'] + let leadingFirstRowSpaces: number = rows[0]['Symbol Names'] ? rows[0]['Symbol Names'].lastIndexOf(' ') + 1 : 0 for (let row of rows) { - const symbolName = row['Symbol Name'] || row['Symbol Names']?.slice(firstRowShift) + const symbolName = row['Symbol Name'] || row['Symbol Names']?.slice(leadingFirstRowSpaces) if (!symbolName) continue const trimmedSymbolName = symbolName.trim() let stackDepth = symbolName.length - trimmedSymbolName.length