Skip to content

Commit 1362a90

Browse files
committed
updated regexp
1 parent 7d1a388 commit 1362a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webpack/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const mdExplodeIncludes = exports.mdExplodeIncludes = ({ cwd, src }) => {
55
const deps = []
66

77
return {
8-
explodedSrc: src.replace(/<!-- *include +(.*?) *-->/g, (match, path) => {
8+
explodedSrc: src.replace(/<!--\s*include\s+([^\s]+)\s*-->/g, (match, path) => {
99
try {
1010
const absolutePath = resolve(cwd, path)
1111
const content = readFileSync(absolutePath, 'utf8')

0 commit comments

Comments
 (0)