diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-01-31 09:05:04 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-01-31 09:05:16 -0500 |
commit | c193a0ce17b30188576fcdb9e4b2222ce7f02f47 (patch) | |
tree | e52a69a3be1e4c325f86d177d08bba57bf09699a /ui/jquery.ui.menu.js | |
parent | 2a8494fc81177944453ab986d3272c2b55ed0b7a (diff) | |
download | jquery-ui-c193a0ce17b30188576fcdb9e4b2222ce7f02f47.tar.gz jquery-ui-c193a0ce17b30188576fcdb9e4b2222ce7f02f47.zip |
Menu: Escape em and en dashes in regex. Fixes #9016 - Menu: Non-ASCII characters.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 4ffe732d4..1c633786d 100644 --- a/ui/jquery.ui.menu.js +++ b/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" ); } }); |