mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 16:32:40 +00:00
Undo linting on unrelated pages
This commit is contained in:
@@ -29,7 +29,7 @@ const getTOC = (pages)=>{
|
|||||||
|
|
||||||
const res = [];
|
const res = [];
|
||||||
_.each(pages, (page, pageNum)=>{
|
_.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');
|
const lines = page.split('\n');
|
||||||
_.each(lines, (line)=>{
|
_.each(lines, (line)=>{
|
||||||
if(_.startsWith(line, '# ')){
|
if(_.startsWith(line, '# ')){
|
||||||
|
|||||||
Reference in New Issue
Block a user