ci: fix typhon test case labels
This commit is contained in:
parent
fbbb40ef56
commit
a0f3493647
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -112,7 +112,14 @@ function unescapeXml(value) {
|
|||||||
|
|
||||||
function attr(attrs, name) {
|
function attr(attrs, name) {
|
||||||
const needle = `${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 '';
|
if (start < 0) return '';
|
||||||
const valueStart = start + needle.length;
|
const valueStart = start + needle.length;
|
||||||
const valueEnd = attrs.indexOf('"', valueStart);
|
const valueEnd = attrs.indexOf('"', valueStart);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user