Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikrantsingh Thakur authored and vikrantsinghthakur committed Mar 19, 2019
1 parent 0e84117 commit dda3208
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions v1/lib/core/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ function insertTOC(rawContent) {
return rawContent;
}
const LOWERCASE_TOC_TOKEN = TABLE_OF_CONTENTS_TOKEN.toLowerCase();
if(rawContent.indexOf(TABLE_OF_CONTENTS_TOKEN) === -1 &&
rawContent.indexOf(LOWERCASE_TOC_TOKEN) === -1){
if (
rawContent.indexOf(TABLE_OF_CONTENTS_TOKEN) === -1 &&
rawContent.indexOf(LOWERCASE_TOC_TOKEN) === -1
) {
return rawContent;
}
const filterRe = /^`[^`]*`/;
Expand Down

0 comments on commit dda3208

Please sign in to comment.