fix(est-test): handle percent details and subtotals
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user