File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -318,12 +318,19 @@ if (typeof(PhpDebugBar) == 'undefined') {
318
318
319
319
this . bindAttr ( [ 'exclude' , 'search' ] , function ( ) {
320
320
var data = this . get ( 'data' ) ,
321
- exclude = this . get ( 'exclude' ) ,
321
+ exclude = this . get ( 'exclude' ) ,
322
322
search = this . get ( 'search' ) ,
323
+ caseless = false ,
323
324
fdata = [ ] ;
324
325
326
+ if ( search && search === search . toLowerCase ( ) ) {
327
+ caseless = true ;
328
+ }
329
+
325
330
for ( var i = 0 ; i < data . length ; i ++ ) {
326
- if ( ( ! data [ i ] . label || $ . inArray ( data [ i ] . label , exclude ) === - 1 ) && ( ! search || data [ i ] . message . indexOf ( search ) > - 1 ) ) {
331
+ var message = caseless ? data [ i ] . message . toLowerCase ( ) : data [ i ] . message ;
332
+
333
+ if ( ( ! data [ i ] . label || $ . inArray ( data [ i ] . label , exclude ) === - 1 ) && ( ! search || message . indexOf ( search ) > - 1 ) ) {
327
334
fdata . push ( data [ i ] ) ;
328
335
}
329
336
}
You can’t perform that action at this time.
0 commit comments