@plainconceptsplatform/workflows 1.21.0 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
// Reads VSTest .trx reports and says where a test run's time goes: by test class, since a class is
|
|
4
4
|
// what xUnit runs in parallel and where a fixture's setup is paid once.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// One literal pattern reads every attribute of a tag: Semgrep blocks a RegExp built from a variable.
|
|
7
|
+
const attr = (tag, name) => Object.fromEntries([...tag.matchAll(/([\w:]+)="([^"]*)"/g)].map(([, key, value]) => [key, value]))[name];
|
|
7
8
|
|
|
8
9
|
function seconds(duration) {
|
|
9
10
|
const [h, m, s] = (duration ?? '0:0:0').split(':');
|