From a0f3493647907850b2b65dfd023481232283c161 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sat, 16 May 2026 16:43:53 -0300 Subject: [PATCH] ci: fix typhon test case labels --- Jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bc42569..8c8b420 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -112,7 +112,14 @@ function unescapeXml(value) { function attr(attrs, name) { const needle = `${name}="`; - const start = attrs.indexOf(needle); + let start = attrs.indexOf(needle); + while (start > 0) { + const previous = attrs.charCodeAt(start - 1); + if (previous === 32 || previous === 9 || previous === 10 || previous === 13) { + break; + } + start = attrs.indexOf(needle, start + 1); + } if (start < 0) return ''; const valueStart = start + needle.length; const valueEnd = attrs.indexOf('"', valueStart);