mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Menu: Escape em and en dashes in regex. Fixes #9016 - Menu: Non-ASCII characters.
This commit is contained in:
parent
2a8494fc81
commit
c193a0ce17
2
ui/jquery.ui.menu.js
vendored
2
ui/jquery.ui.menu.js
vendored
@ -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" );
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user