From 4c690d59f519332360f86ec0422af2752275b060 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Tue, 10 Oct 2017 11:08:53 +0200 Subject: [PATCH] added a name replacement --- selected-markdown-to-jira/info.json | 2 +- selected-markdown-to-jira/selected-markdown-to-jira.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selected-markdown-to-jira/info.json b/selected-markdown-to-jira/info.json index daf5eed..456c2e1 100644 --- a/selected-markdown-to-jira/info.json +++ b/selected-markdown-to-jira/info.json @@ -3,7 +3,7 @@ "identifier": "selected-markdown-to-jira", "script": "selected-markdown-to-jira.qml", "authors": ["@pbek"], - "version": "0.0.3", + "version": "0.0.4", "minAppVersion": "17.05.7", "description" : "With this script you can right click the selected text and convert it to Jira Code in the clipboard.\n\nDependencies\nNode.js\njira2md (installed via npm)\n\nInstallation\nAfter you have installed Node.js you can install jira2md by typing:\nsudo npm install -g jira2md\n\nYou might also need to set your NODE_PATH to the path where the module did get installed with for example:\nexport NODE_PATH=/usr/local/lib/node_modules" } diff --git a/selected-markdown-to-jira/selected-markdown-to-jira.qml b/selected-markdown-to-jira/selected-markdown-to-jira.qml index f2faff7..eb0b07f 100644 --- a/selected-markdown-to-jira/selected-markdown-to-jira.qml +++ b/selected-markdown-to-jira/selected-markdown-to-jira.qml @@ -55,7 +55,7 @@ QtObject { var result = script.startSynchronousProcess(nodejsExecutablePath, params, text); // replace some names - result = String(result).replace(/\@Georg/ig, "[~g.franz]").replace(/\@Jacob/ig, "[~j.ester]").replace(/\@Gandalf/ig, "[~g.sievers]").replace(/\@Dominik/ig, "[~d.jansen]"); + result = String(result).replace(/\@Georg/ig, "[~g.franz]").replace(/\@Jacob/ig, "[~j.ester]").replace(/\@Gandalf/ig, "[~g.sievers]").replace(/\@Dominik/ig, "[~d.jansen]").replace(/\@Adrian/ig, "[~a.lawley]"); // put the result into the clipboard script.setClipboardText(result);