Skip to content

Commit c301ceb

Browse files
committed
Perform case-insensitive matching.
1 parent 00ac218 commit c301ceb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/admin-bar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
971971
*/
972972
$function = <<<'JS'
973973
( applePattern, appleOSLabel ) => {
974-
if ( ( new RegExp( applePattern ) ).test( navigator.userAgent ) ) {
974+
if ( ( new RegExp( applePattern, 'i' ) ).test( navigator.userAgent ) ) {
975975
document.querySelector( '#wp-admin-bar-command-palette .ab-label kbd' ).textContent = appleOSLabel;
976976
}
977977
}

0 commit comments

Comments
 (0)