Skip to content

Commit

Permalink
Remove unneccesary escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieroberto committed Dec 6, 2023
1 parent 3f167d3 commit c85234f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = function (eleventyConfig) {
let nunjucksCode = matter(fs.readFileSync(`examples/${componentName}.njk`, 'utf-8')).content

// Remove the `{% from "..." import ... %}` lines as those aren’t needed by users.
nunjucksCode = nunjucksCode.replace(/\{\%\sfrom\s[^\n]+\n\n/, '')
nunjucksCode = nunjucksCode.replace(/{%\sfrom\s[^\n]+\n\n/, '')

return nunjucksCode
})
Expand Down

0 comments on commit c85234f

Please sign in to comment.