1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Make Palette search Case InSeNsItIve

fix to close #496
This commit is contained in:
Dave C-J 2014-12-09 14:37:32 +00:00
parent 8c5fab61e6
commit 6fc3aab907

View File

@ -227,7 +227,7 @@ RED.palette = (function() {
$("#palette-search-clear").show(); $("#palette-search-clear").show();
} }
var re = new RegExp(val); var re = new RegExp(val,'i');
$(".palette_node").each(function(i,el) { $(".palette_node").each(function(i,el) {
if (val === "" || re.test(el.id)) { if (val === "" || re.test(el.id)) {
$(this).show(); $(this).show();