Skip to content

Commit c29ab48

Browse files
author
tunnckoCore
committed
update regex
1 parent 2ad3af2 commit c29ab48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
'use strict';
99

1010
module.exports = function coverageCodeRegex() {
11-
return /(?:__cov_(?:[\w\W\S.,$]{1,22})\.(?:.{1})\[\'(?:\d{1,})\'\]\+\+\;)/;
11+
// e.g. __cov_abc.s['12'][0][2][1]
12+
return /(?:__cov_(?:[\w\W\S.,$]{1,22})\.(?:.{1})\[\'(?:\d{1,})\'\](?:\[(?:\d{1,})\])*?\+\+\;)/;
1213
};

0 commit comments

Comments
 (0)