Skip to content

Commit 2051403

Browse files
authored
Add variable declaration to prevent failures when the code is bundled (#101)
1 parent 256d8e4 commit 2051403

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parsers/junit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ function setAttachments(rawCase, test_element) {
133133
// junit attachments plug syntax is [[ATTACHMENT|/absolute/path/to/file.png]]
134134
const regex = new RegExp('\\[\\[ATTACHMENT\\|([^\\]]+)\\]\\]', 'g');
135135

136+
let m;
136137
while ((m = regex.exec(systemOut)) !== null) {
137138
// avoid infinite loops with zero-width matches
138139
if (m.index === regex.lastIndex) {

0 commit comments

Comments
 (0)