diff --git a/src/artigen/math/mathSolver.ts b/src/artigen/math/mathSolver.ts index 4be912f..1d6befc 100644 --- a/src/artigen/math/mathSolver.ts +++ b/src/artigen/math/mathSolver.ts @@ -77,8 +77,8 @@ export const mathSolver = (conf: MathConf[], wrapDetails = false): SolvedStep => for (let i = 1; i < conf.length; i++) { loopCountCheck('mathSolver.ts - checking for implicit multiplication'); - const prevConfAsStr = conf[i - 1]; - const curConfAsStr = conf[i]; + const prevConfAsStr = conf[i - 1]; + const curConfAsStr = conf[i]; if (!signs.includes(curConfAsStr) && !signs.includes(prevConfAsStr)) { // Both previous and current conf are operators, slip in the "*" conf.splice(i, 0, '*'); @@ -197,7 +197,7 @@ export const mathSolver = (conf: MathConf[], wrapDetails = false): SolvedStep => stepSolve.details = conf[0].toString(); } else { // Else fully populate the stepSolve with what was computed - const tempConf = conf[0]; + const tempConf = conf[0]; stepSolve.total = tempConf.total; stepSolve.details = tempConf.details; stepSolve.containsCrit = tempConf.containsCrit; diff --git a/src/artigen/utils/parenBalance.ts b/src/artigen/utils/parenBalance.ts index 09673df..6930f2a 100644 --- a/src/artigen/utils/parenBalance.ts +++ b/src/artigen/utils/parenBalance.ts @@ -23,7 +23,7 @@ const checkBalance = ( // Verify there are equal numbers of opening and closing parenthesis by adding 1 for opening parens and subtracting 1 for closing parens for (let i = openIdx; i < conf.length; i++) { countLoops && - loopCountCheck(`parenBalance.ts - ${getMatching ? 'Looking for matching' : 'Checking'} ${openStr}/${closeStr} ${getMatching ? '' : 'balance '}`); + loopCountCheck(`parenBalance.ts - ${getMatching ? 'Looking for matching' : 'Checking'} ${openStr}/${closeStr}${getMatching ? '' : ' balance'}`); loggingEnabled && log( LT.LOG,