Skip to content

Commit 6e202ff

Browse files
committed
Regex mode change
1 parent 168b6b5 commit 6e202ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/logs/model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ansiColorRE = /\u001b\[((?:\d+;?)+)m(.*)\u001b\[0m/gm;
1+
const ansiColorRE = /\u001b\[((?:\d+;?)+)m(.*)\u001b\[0m/gmu;
22
const groupMarker = '##[group]';
33
const commandRE = /##\[[a-z]+\]/gm;
44

@@ -65,7 +65,7 @@ export function parseLog(log: string): LogInfo {
6565
sections.push(currentRange);
6666
}
6767

68-
const name = line.substr(groupMarkerStart + groupMarker.length);
68+
const name = line.substring(groupMarkerStart + groupMarker.length);
6969

7070
currentRange = {
7171
name,

0 commit comments

Comments
 (0)