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 352239 3b39fd1f2c80e5f10493cb10c1ea6d30da7a3fd6
parent 352238 af0d5a28645e78a9e7847a1b4e93026943ec3d01
child 352240 1d905b01094e7e8b0acfcb7c4b49f17a41e644cc
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [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) {