We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d1a388 commit 1362a90Copy full SHA for 1362a90
lib/webpack/util.js
@@ -5,7 +5,7 @@ const mdExplodeIncludes = exports.mdExplodeIncludes = ({ cwd, src }) => {
5
const deps = []
6
7
return {
8
- explodedSrc: src.replace(/<!-- *include +(.*?) *-->/g, (match, path) => {
+ explodedSrc: src.replace(/<!--\s*include\s+([^\s]+)\s*-->/g, (match, path) => {
9
try {
10
const absolutePath = resolve(cwd, path)
11
const content = readFileSync(absolutePath, 'utf8')
0 commit comments