Skip to content
Permalink
Browse files

Menu: Escape em and en dashes in regex. Fixes #9016 - Menu: Non-ASCII…

… characters.
  • Loading branch information
scottgonzalez committed Jan 31, 2013
1 parent 2a8494f commit c193a0ce17b30188576fcdb9e4b2222ce7f02f47
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.menu.js
@@ -323,7 +323,7 @@ $.widget( "ui.menu", {
menus.children( ":not(.ui-menu-item)" ).each(function() {
var item = $( this );
// hyphen, em dash, en dash
if ( !/[^\-\s]/.test( item.text() ) ) {
if ( !/[^\-\u2014\u2013\s]/.test( item.text() ) ) {
item.addClass( "ui-widget-content ui-menu-divider" );
}
});

0 comments on commit c193a0c

Please sign in to comment.
You can’t perform that action at this time.