diff --git a/bin/generateTOC.js b/bin/generateTOC.js index c680939..8fffb9c 100644 --- a/bin/generateTOC.js +++ b/bin/generateTOC.js @@ -5,11 +5,11 @@ import { replaceInReadme } from './replaceInReadme.js' const TOC_START_MARKER = '' const TOC_END_MARKER = '' -const TRAVIS_BADGE = /\[!\[Build Status]\(.*?\)]\(.*?\)/ +const CI_BADGE = /\[!\[Build status]\(.*?\)]\(.*?\)/ async function main () { const content = (await readFile('./README.md', 'utf8')) - .replace(TRAVIS_BADGE, '') // remove travis badge, it confuses markdown-toc + .replace(CI_BADGE, '') // remove travis badge, it confuses markdown-toc const toc = markdownToc(content).content .replace('#emoji-picker-element', '#emoji-picker-element-') // it confuses GitHub's anchor links too await replaceInReadme(TOC_START_MARKER, TOC_END_MARKER, toc)