mirror of
https://github.com/marty-oehme/scripts.git
synced 2024-12-22 07:58:08 +00:00
added some name replacements
This commit is contained in:
parent
6bd6e9eee5
commit
b85e0f8cf1
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
"identifier": "selected-markdown-to-jira",
|
||||
"script": "selected-markdown-to-jira.qml",
|
||||
"authors": ["@pbek"],
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"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>"
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ QtObject {
|
|||
var result = script.startSynchronousProcess(nodejsExecutablePath, params, text);
|
||||
|
||||
// replace some names
|
||||
result = String(result).replace(/\@Georg/ig, "[~g.franz]");
|
||||
result = String(result).replace(/\@Georg/ig, "[~g.franz]").replace(/\@Jacob/ig, "[~j.ester]").replace(/\@Gandalf/ig, "[~g.sievers]");
|
||||
|
||||
// put the result into the clipboard
|
||||
script.setClipboardText(result);
|
||||
|
|
Loading…
Reference in a new issue