mirror of
https://github.com/marty-oehme/scripts.git
synced 2024-12-22 07:58:08 +00:00
doing case insensitive replace
This commit is contained in:
parent
23eaa68a33
commit
3a6e18bc61
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
"script": "selected-markdown-to-bbcode.qml",
|
"script": "selected-markdown-to-bbcode.qml",
|
||||||
"resources": ["panbbcode.lua"],
|
"resources": ["panbbcode.lua"],
|
||||||
"authors": ["@pbek"],
|
"authors": ["@pbek"],
|
||||||
"version": "0.0.2",
|
"version": "1.0.3",
|
||||||
"minAppVersion": "17.05.8",
|
"minAppVersion": "17.05.8",
|
||||||
"description" : "With this script you can right click the selected text and convert it to BBCode Code in the clipboard.\n\n<b>Dependencies</b>\n<a href=\"http://pandoc.org\">Pandoc</a>\n<a href=\"https://github.com/2ion/pandoc-bbcode\">panbbcode.lua</a> (bundled with the script)\n\n<b>Installation</b>\nAfter you have installed <i>Pandoc</i> you have to configure its path in the script settings."
|
"description" : "With this script you can right click the selected text and convert it to BBCode Code in the clipboard.\n\n<b>Dependencies</b>\n<a href=\"http://pandoc.org\">Pandoc</a>\n<a href=\"https://github.com/2ion/pandoc-bbcode\">panbbcode.lua</a> (bundled with the script)\n\n<b>Installation</b>\nAfter you have installed <i>Pandoc</i> you have to configure its path in the script settings."
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ QtObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
function replaceAll(str, find, replace) {
|
function replaceAll(str, find, replace) {
|
||||||
return String(str).replace(new RegExp(escapeRegExp(find), 'g'), replace);
|
return String(str).replace(new RegExp(escapeRegExp(find), 'gi'), replace);
|
||||||
}
|
}
|
||||||
|
|
||||||
function escapeRegExp(str) {
|
function escapeRegExp(str) {
|
||||||
|
|
Loading…
Reference in a new issue