0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 05:32:41 +00:00

Lint a bunch of things

This commit is contained in:
Trevor Buckner
2024-05-21 17:32:17 -04:00
parent 0c38415372
commit e62e185214
16 changed files with 155 additions and 155 deletions

View File

@@ -29,7 +29,7 @@ const getTOC = (pages)=>{
const res = [];
_.each(pages, (page, pageNum)=>{
if(!page.includes("{{frontCover}}") && !page.includes("{{insideCover}}") && !page.includes("{{partCover}}") && !page.includes("{{backCover}}")) {
if(!page.includes('{{frontCover}}') && !page.includes('{{insideCover}}') && !page.includes('{{partCover}}') && !page.includes('{{backCover}}')) {
const lines = page.split('\n');
_.each(lines, (line)=>{
if(_.startsWith(line, '# ')){