mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04:00
deno fmt + fix spacing in log message
This commit is contained in:
@@ -77,8 +77,8 @@ export const mathSolver = (conf: MathConf[], wrapDetails = false): SolvedStep =>
|
|||||||
for (let i = 1; i < conf.length; i++) {
|
for (let i = 1; i < conf.length; i++) {
|
||||||
loopCountCheck('mathSolver.ts - checking for implicit multiplication');
|
loopCountCheck('mathSolver.ts - checking for implicit multiplication');
|
||||||
|
|
||||||
const prevConfAsStr = <string>conf[i - 1];
|
const prevConfAsStr = <string> conf[i - 1];
|
||||||
const curConfAsStr = <string>conf[i];
|
const curConfAsStr = <string> conf[i];
|
||||||
if (!signs.includes(curConfAsStr) && !signs.includes(prevConfAsStr)) {
|
if (!signs.includes(curConfAsStr) && !signs.includes(prevConfAsStr)) {
|
||||||
// Both previous and current conf are operators, slip in the "*"
|
// Both previous and current conf are operators, slip in the "*"
|
||||||
conf.splice(i, 0, '*');
|
conf.splice(i, 0, '*');
|
||||||
@@ -197,7 +197,7 @@ export const mathSolver = (conf: MathConf[], wrapDetails = false): SolvedStep =>
|
|||||||
stepSolve.details = conf[0].toString();
|
stepSolve.details = conf[0].toString();
|
||||||
} else {
|
} else {
|
||||||
// Else fully populate the stepSolve with what was computed
|
// Else fully populate the stepSolve with what was computed
|
||||||
const tempConf = <SolvedStep>conf[0];
|
const tempConf = <SolvedStep> conf[0];
|
||||||
stepSolve.total = tempConf.total;
|
stepSolve.total = tempConf.total;
|
||||||
stepSolve.details = tempConf.details;
|
stepSolve.details = tempConf.details;
|
||||||
stepSolve.containsCrit = tempConf.containsCrit;
|
stepSolve.containsCrit = tempConf.containsCrit;
|
||||||
|
|||||||
@@ -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
|
// 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++) {
|
for (let i = openIdx; i < conf.length; i++) {
|
||||||
countLoops &&
|
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 &&
|
loggingEnabled &&
|
||||||
log(
|
log(
|
||||||
LT.LOG,
|
LT.LOG,
|
||||||
|
|||||||
Reference in New Issue
Block a user