File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 46
46
"eslint" : " >=6.0.0"
47
47
},
48
48
"devDependencies" : {
49
- "@ota-meshi/eslint-plugin" : " ^0.4 .0" ,
49
+ "@ota-meshi/eslint-plugin" : " ^0.5 .0" ,
50
50
"@types/eslint" : " ^7.2.0" ,
51
51
"@types/eslint-scope" : " ^3.7.0" ,
52
52
"@types/estree" : " ~0.0.45" ,
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ This rule was introduced in eslint-plugin-regexp ${this.since}
173
173
public adjustCodeBlocks ( ) {
174
174
// Adjust the necessary blank lines before and after the code block so that GitHub can recognize `.md`.
175
175
this . content = this . content . replace (
176
- / ( < e s l i n t - c o d e - b l o c k ( [ \s \S ] * ?) > ) \n + ` ` ` / gmu,
176
+ / ( < e s l i n t - c o d e - b l o c k [ \s \S ] * ?> ) \n + ` ` ` / gmu,
177
177
"$1\n\n```" ,
178
178
)
179
179
this . content = this . content . replace (
@@ -198,7 +198,7 @@ This rule was introduced in eslint-plugin-regexp ${this.since}
198
198
. map ( ( key ) => `${ key } : ${ yamlValue ( ( fileIntro as any ) [ key ] ) } ` )
199
199
. join ( "\n" ) } \n---\n`
200
200
201
- const fileIntroPattern = / ^ - - - \n ( .* \n ) + ?- - - \n * / gu
201
+ const fileIntroPattern = / ^ - - - \n (?: .* \n ) + ?- - - \n * / gu
202
202
203
203
if ( fileIntroPattern . test ( this . content ) ) {
204
204
this . content = this . content . replace (
Original file line number Diff line number Diff line change @@ -41,10 +41,7 @@ fs.writeFileSync(
41
41
/ < ! - - U S A G E _ S E C T I O N _ S T A R T - - > [ \s \S ] * < ! - - U S A G E _ S E C T I O N _ E N D - - > / u,
42
42
"See [User Guide](./user-guide/README.md)." ,
43
43
)
44
- . replace (
45
- / < ! - - D O C S _ I G N O R E _ S T A R T - - > ( [ \s \S ] * ?) < ! - - D O C S _ I G N O R E _ E N D - - > / gu,
46
- "" ,
47
- )
44
+ . replace ( / < ! - - D O C S _ I G N O R E _ S T A R T - - > [ \s \S ] * ?< ! - - D O C S _ I G N O R E _ E N D - - > / gu, "" )
48
45
. replace (
49
46
/ \( h t t p s : \/ \/ o t a - m e s h i .g i t h u b .i o \/ e s l i n t - p l u g i n - r e g e x p / gu,
50
47
"(." ,
You can’t perform that action at this time.
0 commit comments