From f247d6857cc0117fce4a2184af2833d5ac05bde3 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Wed, 31 Jan 2018 16:49:04 +0100 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 456c2e1..e24460e 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.4", + "version": "0.0.5", "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 eb0b07f..3be73d0 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]").replace(/\@Adrian/ig, "[~a.lawley]"); + 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]").replace(/\@Bastian/ig, "[~b.widensky]"); // put the result into the clipboard script.setClipboardText(result);