Skip to content

Commit

Permalink
Another vue prop handling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
max-leuthaeuser committed Nov 28, 2023
1 parent d0ad8ef commit 91f1be8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,11 @@ const toVueAst = (file) => {
grB +
grC.replaceAll(/\S/g, " ")
})
.replace(vuePropRegex, function (match, grA, grB) {
return " " + grA.replace(/[.:@]/g, " ") + grB
})
.replace(vueTemplateRegex, function (match, grA, grB, grC) {
return grA +
grB
grB.replace(vuePropRegex, function (match, grA, grB) {
return " " + grA.replace(/[.:@]/g, " ") + grB.replaceAll(".", "-")
})
.replaceAll("{{", "{ ")
.replaceAll("}}", " }") +
grC
Expand Down

0 comments on commit 91f1be8

Please sign in to comment.