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 13
13
strategy :
14
14
matrix :
15
15
node-version :
16
- - 12 .x
16
+ - 14 .x
17
17
steps :
18
18
- uses : actions/checkout@v1
19
19
- uses : actions/setup-node@v1
Original file line number Diff line number Diff line change 10
10
},
11
11
"license" : " Apache-2.0" ,
12
12
"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 " ,
16
16
"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 "
19
19
}
20
20
}
Original file line number Diff line number Diff line change @@ -171,12 +171,15 @@ function collectSnippets(filePath: string): SnippetsConfig {
171
171
const suffixLine = lines . find ( ( l ) => ! ! l . match ( RE_SNIPPETS_SUFFIX ) ) ;
172
172
if ( suffixLine ) {
173
173
const m = suffixLine . match ( RE_SNIPPETS_SUFFIX ) ;
174
- config . suffix = m [ 1 ] ;
174
+
175
+ if ( m && m [ 1 ] ) {
176
+ config . suffix = m [ 1 ] ;
177
+ }
175
178
}
176
179
177
180
// A temporary array holding the names of snippets we're currently within.
178
181
// This allows for handling nested snippets.
179
- let inSnippetNames = [ ] ;
182
+ let inSnippetNames : string [ ] = [ ] ;
180
183
181
184
for ( const line of lines ) {
182
185
const startMatch = line . match ( RE_START_SNIPPET ) ;
You can’t perform that action at this time.
0 commit comments