From d3b86e6eb4ac06ff4a0d9212e92e3f9d73aab7f1 Mon Sep 17 00:00:00 2001 From: Brian Joseph Petro Date: Fri, 2 Aug 2024 18:05:18 -0400 Subject: [PATCH] fix block exclusions within source content --- smart-entities/SmartSource.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smart-entities/SmartSource.js b/smart-entities/SmartSource.js index 8cffee63..e033a1a4 100644 --- a/smart-entities/SmartSource.js +++ b/smart-entities/SmartSource.js @@ -43,9 +43,9 @@ export class SmartSource extends SmartEntity { const content_lines = content.split("\n"); this.excluded_lines.forEach(lines => { const {start, end} = lines; - lines.forEach((line, i) => { - if(i >= start && i <= end) content_lines[line] = ""; - }); + for(let i = start; i <= end; i++){ + content_lines[i] = ""; + } }); content = content_lines.filter(line => line.length).join("\n"); }