aboutsummaryrefslogtreecommitdiffstats
path: root/ui/menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/menu.js')
-rw-r--r--ui/menu.js2
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() ) );
});
}
});