From fc88a9d2385c6ddc48e19a31aa8d3bb4eb082794 Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Mon, 1 Sep 2025 10:01:54 +0800 Subject: [PATCH] fix: Define variable to avoid error in strict mode Addresses #21 --- src/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.js b/src/main.js index acdc39b..a3ebf88 100644 --- a/src/main.js +++ b/src/main.js @@ -171,6 +171,7 @@ const wrap = (input, options) => { const splitAnsiInput = (text) => { // get start and end positions for matches + let result = null; let matches = [] let textArr = [...text] let textLength = textArr.length