added a name replacement

This commit is contained in:
Patrizio Bekerle 2017-09-18 12:11:17 +02:00
parent eae149ce68
commit 9aab38c19a
No known key found for this signature in database
GPG Key ID: 2E9FFD770DABE838
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
"identifier": "selected-markdown-to-jira",
"script": "selected-markdown-to-jira.qml",
"authors": ["@pbek"],
"version": "0.0.2",
"version": "0.0.3",
"minAppVersion": "17.05.7",
"description" : "With this script you can right click the selected text and convert it to <a href='https://www.atlassian.com/software/jira'>Jira</a> Code.\n\n<b>Dependencies</b>\n<a href=\"https://nodejs.org/en/download/\">Node.js</a>\n<a href=\"https://github.com/kylefarris/J2M\">jira2md</a> (installed via <code>npm</code>)\n\n<b>Installation</b>\nAfter you have installed <i>Node.js</i> you can install <i>jira2md</i> by typing:\n<code>sudo npm install -g jira2md</code>\n\nYou might also need to set your <code>NODE_PATH</code> to the path where the module did get installed with for example:\n<code>export NODE_PATH=/usr/local/lib/node_modules</code>"
}

View File

@ -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]");
result = String(result).replace(/\@Georg/ig, "[~g.franz]").replace(/\@Jacob/ig, "[~j.ester]").replace(/\@Gandalf/ig, "[~g.sievers]").replace(/\@Dominik/ig, "[~d.jansen]");
// put the result into the clipboard
script.setClipboardText(result);