From 2f92db75518b9ebf5d518fcc2a8afe931b59f49b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Dec 2025 14:59:18 +0000 Subject: [PATCH 1/2] Initial plan From 74385240b8ed5697db1cd9e5a0280a56feb50be6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Dec 2025 15:01:18 +0000 Subject: [PATCH 2/2] Rename found to foundNumberEnd in number parsing logic Co-authored-by: JoshdRod <128097418+JoshdRod@users.noreply.github.com> --- pages/index/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index/script.js b/pages/index/script.js index 2979799..5604087 100644 --- a/pages/index/script.js +++ b/pages/index/script.js @@ -179,7 +179,7 @@ function expressionToComponentList(expression) // If number, find end of num and add whole num else if (!isNaN(exp[i])) { - let found = false; + let foundNumberEnd = false; for (let j = i; j < exp.length; j++) { if (isNaN(exp[j])) @@ -188,11 +188,11 @@ function expressionToComponentList(expression) type = "number"; i = j; - found = true; + foundNumberEnd = true; break; } } - if (found == false) // If can't find any non-nums, then number extends to end of string + if (foundNumberEnd == false) // If can't find any non-nums, then number extends to end of string { content = exp.slice(i); type = "number";