File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1313 strategy :
1414 matrix :
1515 node-version :
16- - 12 .x
16+ - 14 .x
1717 steps :
1818 - uses : actions/checkout@v1
1919 - uses : actions/setup-node@v1
Original file line number Diff line number Diff line change 1010 },
1111 "license" : " Apache-2.0" ,
1212 "devDependencies" : {
13- "@types/node" : " ^15.12.2 " ,
14- "eslint" : " ^7.16 .0" ,
15- "pnpm" : " ^6.7.4 " ,
13+ "@types/node" : " ^16.7.10 " ,
14+ "eslint" : " ^7.32 .0" ,
15+ "pnpm" : " ^6.14.6 " ,
1616 "rimraf" : " ^3.0.2" ,
17- "ts-node" : " ^9.0.0 " ,
18- "typescript" : " ^3.8.3 "
17+ "ts-node" : " ^10.2.1 " ,
18+ "typescript" : " ^4.4.2 "
1919 }
2020}
Original file line number Diff line number Diff line change @@ -171,12 +171,15 @@ function collectSnippets(filePath: string): SnippetsConfig {
171171 const suffixLine = lines . find ( ( l ) => ! ! l . match ( RE_SNIPPETS_SUFFIX ) ) ;
172172 if ( suffixLine ) {
173173 const m = suffixLine . match ( RE_SNIPPETS_SUFFIX ) ;
174- config . suffix = m [ 1 ] ;
174+
175+ if ( m && m [ 1 ] ) {
176+ config . suffix = m [ 1 ] ;
177+ }
175178 }
176179
177180 // A temporary array holding the names of snippets we're currently within.
178181 // This allows for handling nested snippets.
179- let inSnippetNames = [ ] ;
182+ let inSnippetNames : string [ ] = [ ] ;
180183
181184 for ( const line of lines ) {
182185 const startMatch = line . match ( RE_START_SNIPPET ) ;
You can’t perform that action at this time.
0 commit comments