File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,7 @@ var yellow = ansiColor(33, 39)
24
24
var green = ansiColor ( 32 , 39 )
25
25
26
26
// Define ANSII color removal functionality.
27
- var colorExpression = new RegExp (
28
- '(?:' +
29
- '(?:\\u001b\\[)|' +
30
- '\\u009b' +
31
- ')' +
32
- '(?:' +
33
- '(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m]' +
34
- ')|' +
35
- '\\u001b[A-M]' ,
36
- 'g'
37
- )
27
+ var colorExpression = / (?: (?: \u001B \[ ) | \u009b ) (?: \d { 1 , 3 } ) ? (?: (?: ; \d { 0 , 3 } ) * ) ? [ A - M | f - m ] | \u001b [ A - M ] / g
38
28
39
29
// Standard keys defined by unist: https://github.com/syntax-tree/unist.
40
30
// We don’t ignore `data` though.
Original file line number Diff line number Diff line change 69
69
"esnext" : false ,
70
70
"rules" : {
71
71
"unicorn/prefer-number-properties" : " off" ,
72
+ "unicorn/prefer-includes" : " off" ,
72
73
"guard-for-in" : " off" ,
73
- "unicorn/prefer-includes " : " off"
74
+ "no-control-regex " : " off"
74
75
},
75
76
"ignore" : [
76
77
" types" ,
You can’t perform that action at this time.
0 commit comments