diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/menu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/menu.js b/ui/menu.js index 31263fbcf..31f621d22 100644 --- a/ui/menu.js +++ b/ui/menu.js @@ -638,7 +638,7 @@ return $.widget( "ui.menu", { // Only match on items, not dividers or other content (#10571) .filter( ".ui-menu-item" ) .filter(function() { - return regex.test( $( this ).text() ); + return regex.test( $.trim( $( this ).text() ) ); }); } }); |