We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
item_in
1 parent 4de3a4c commit 679a1a2Copy full SHA for 679a1a2
notebook/static/tree/js/notebooklist.js
@@ -25,7 +25,11 @@ define([
25
};
26
27
var item_in = function(item, list) {
28
- return list.indexOf(item) != -1;
+ // Normalize list and item to lowercase
29
+ var normalized_list = list.map(function(_item) {
30
+ return _item.toLowerCase();
31
+ });
32
+ return normalized_list.indexOf(item.toLowerCase()) != -1;
33
34
35
var includes_extension = function(filepath, extensionslist) {
0 commit comments