Skip to content

Commit cddb81e

Browse files
committed
adjusting partial regex to account for parameters
1 parent d9b8483 commit cddb81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function generateName (path) {
1818

1919
function resolvePartials (source, parentPath) {
2020
const partials = []
21-
const partialRegex = /\{>\s*"([^"]+)" *\/\}/g
21+
const partialRegex = /\{>\s*"([^"]+)"[^\n]*\/\}/g
2222
const newSource = source.replace(partialRegex, (tag, relPath) => {
2323
if (extname(relPath) === '.dust') {
2424
const fullPath = getFullPath(parentPath, relPath)

0 commit comments

Comments
 (0)