Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| index 3e8c48459315aeac5e765d59755ca51643fb8c3e..5642a8f334db0b7f36e6f73cca54a2151465f049 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| @@ -995,7 +995,9 @@ WebInspector.NetworkLogView.prototype = { |
| var re = this._searchRegex; |
| if (!re) |
| return false; |
| - return re.test(request.name()) || (this._networkLogLargeRowsSetting.get() && re.test(request.path())); |
| + |
| + var text = (this._networkLogLargeRowsSetting.get() ? request.path() + "/" + request.name() : request.name()); |
|
allada
2016/08/08 17:54:00
nit: remove parenthesis wrap.
|
| + return re.test(text); |
| }, |
| _clearSearchMatchedList: function() |
| @@ -1477,7 +1479,9 @@ WebInspector.NetworkLogView._requestNameOrPathFilter = function(regex, request) |
| { |
| if (!regex) |
| return false; |
| - return regex.test(request.name()) || regex.test(request.path()); |
| + |
| + var text = request.path() + "/" + request.name(); |
|
allada
2016/08/08 17:54:00
nit: lets put this into the regex.test() method.
|
| + return regex.test(text); |
| } |
| /** |