fix(est-test): handle percent details and subtotals

This commit is contained in:
2026-11-09 23:33:40 +09:00
parent 741805ffde
commit ae31ac00fb
9 changed files with 99 additions and 14 deletions
+1
View File
@@ -318,6 +318,7 @@ const EstText = (() => {
.trim();
if (body.includes(":")) body = body.slice(body.indexOf(":") + 1);
body = body.replace(/^\s*[A-Za-z]\w*\s*=\s*/, "");
body = body.split("=")[0];
calculated = body ? EstExpression.evaluate(body, (key) => variables[key]) : 0;
}
} else if (matched && sc === -5) {