Index: Source/devtools/front_end/ConsoleView.js |
diff --git a/Source/devtools/front_end/ConsoleView.js b/Source/devtools/front_end/ConsoleView.js |
index ca6ad9a3378a72750764487393ac834d679dcea8..2026c7fe237fdc4a54ce6e277e66d3775d9d8581 100644 |
--- a/Source/devtools/front_end/ConsoleView.js |
+++ b/Source/devtools/front_end/ConsoleView.js |
@@ -780,7 +780,7 @@ WebInspector.ConsoleViewFilter.Events = { |
WebInspector.ConsoleViewFilter.prototype = { |
addFilters: function(filterBar) |
{ |
- this._textFilterUI = new WebInspector.TextFilterUI(); |
+ this._textFilterUI = new WebInspector.TextFilterUI(true); |
this._textFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._textFilterChanged, this); |
filterBar.addFilter(this._textFilterUI); |
@@ -797,11 +797,7 @@ WebInspector.ConsoleViewFilter.prototype = { |
_textFilterChanged: function(event) |
{ |
- var query = this._textFilterUI.value(); |
- if (!query) |
- delete this._filterRegex; |
- else |
- this._filterRegex = createPlainTextSearchRegex(query, "gi"); |
+ this._filterRegex = this._textFilterUI.regex(); |
this._filterChanged(); |
}, |