Improved log entries for actions

This commit is contained in:
Stefan Zermatten
2021-02-11 16:08:31 +02:00
parent 439eadf079
commit 92a5c1e6c3
5 changed files with 59 additions and 15 deletions

View File

@@ -0,0 +1,8 @@
export default function embedInlineCalculations(string, calculations){
if (!string) return '';
let index = 0;
return string.replace(/\{([^{}]*)\}/g, () => {
let comp = calculations && calculations[index++];
return comp && comp.result;
});
}