From f388007ecd55105f0643d66bb728d2782778ee52 Mon Sep 17 00:00:00 2001
From: Robin Leber <rleber98@gmail.com>
Date: Fri, 21 Jun 2024 15:22:39 +0200
Subject: [PATCH] pipe binding, better naming

---
 src/functions/pipeBinding.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/functions/pipeBinding.js b/src/functions/pipeBinding.js
index fb352af..94e5f82 100644
--- a/src/functions/pipeBinding.js
+++ b/src/functions/pipeBinding.js
@@ -24,7 +24,7 @@ export const handlePipeBinding = (pipeMapping, editor) => {
   pipeMapping.forEach((pipe) => {
     if (
       editorCodeText.includes(
-        `const ${pipe.pipeName.replace(/\s+/g, "")} = "${pipe.pipeName}"`
+        `const ${pipe.pipeName.replace(/\s+/g, "")}Pipea = "${pipe.pipeName}"`
       )
     ) {
       return;
@@ -34,7 +34,7 @@ export const handlePipeBinding = (pipeMapping, editor) => {
       let transaction = editor.state.update({
         changes: {
           from: position,
-          insert: `\t\tconst ${pipe.pipeName.replace(/\s+/g, "")} = "${
+          insert: `\t\tconst ${pipe.pipeName.replace(/\s+/g, "")}Pipe = "${
             pipe.pipeName
           }"\n`,
         },
-- 
GitLab