Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pages/index/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand All @@ -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";
Expand Down