From 91f1be89a1724a1a1b06d33ea64a847b4b991f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leuth=C3=A4user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Tue, 28 Nov 2023 10:57:58 +0100 Subject: [PATCH] Another vue prop handling fix --- index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 87c6d9c..01d4473 100644 --- a/index.js +++ b/index.js @@ -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