Skip to content
Snippets Groups Projects
Commit c48129ab authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(bundler): brace against undefined replace

parent 430c0552
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ async function extractPackageFile(content, fileName) { ...@@ -68,7 +68,7 @@ async function extractPackageFile(content, fileName) {
lineNumber += 1; lineNumber += 1;
groupLine = lines[lineNumber]; groupLine = lines[lineNumber];
if (groupLine !== 'end') { if (groupLine !== 'end') {
groupContent += groupLine.replace(/^ {2}/, '') + '\n'; groupContent += (groupLine || '').replace(/^ {2}/, '') + '\n';
} }
} }
const groupRes = await extractPackageFile(groupContent); const groupRes = await extractPackageFile(groupContent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment