doing case insensitive replace

This commit is contained in:
Patrizio Bekerle 2018-06-29 07:27:46 +02:00
parent 23eaa68a33
commit 3a6e18bc61
No known key found for this signature in database
GPG Key ID: 2E9FFD770DABE838
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
"script": "selected-markdown-to-bbcode.qml",
"resources": ["panbbcode.lua"],
"authors": ["@pbek"],
"version": "0.0.2",
"version": "1.0.3",
"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."
}

View File

@ -85,7 +85,7 @@ QtObject {
}
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) {