Bug 1313850 - Enable users to have capital letters in filter string r=Honza
authorEric Skoglund <eric@pagefault.se>
Thu, 10 Nov 2016 15:51:28 +0100
changeset 348887 3b39fd1f2c80e5f10493cb10c1ea6d30da7a3fd6
parent 348886 af0d5a28645e78a9e7847a1b4e93026943ec3d01
child 348888 1d905b01094e7e8b0acfcb7c4b49f17a41e644cc
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza
bugs1313850
milestone52.0a1
Bug 1313850 - Enable users to have capital letters in filter string r=Honza MozReview-Commit-ID: FfhHtEoqrnz
devtools/client/jsonview/components/json-panel.js
--- a/devtools/client/jsonview/components/json-panel.js
+++ b/devtools/client/jsonview/components/json-panel.js
@@ -54,17 +54,17 @@ define(function (require, exports, modul
     },
 
     onFilter: function (object) {
       if (!this.props.searchFilter) {
         return true;
       }
 
       let json = JSON.stringify(object).toLowerCase();
-      return json.indexOf(this.props.searchFilter) >= 0;
+      return json.indexOf(this.props.searchFilter.toLowerCase()) >= 0;
     },
 
     getExpandedNodes: function (object, path = "", level = 0) {
       if (typeof object != "object") {
         return null;
       }
 
       if (level > AUTO_EXPAND_MAX_LEVEL) {