mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 20:25:26 +00:00
Applied changes to solve several issues about typescript strict mode
This commit is contained in:
@@ -30,14 +30,14 @@ export function parse(buffer: Buffer) {
|
||||
/** EOF */
|
||||
blockEndPoint === fileAsString.length
|
||||
) {
|
||||
let match: RegExpMatchArray;
|
||||
let match: RegExpMatchArray | null;
|
||||
|
||||
const section = fileAsString.substring(
|
||||
blockStartPoint,
|
||||
blockEndPoint + 1,
|
||||
);
|
||||
|
||||
if ((match = section.match(translationRowRegex))) {
|
||||
if ((match = section.match(translationRowRegex)) && match.groups) {
|
||||
const {
|
||||
groups: { key, value },
|
||||
} = match;
|
||||
|
||||
Reference in New Issue
Block a user