Skip to content

Commit 58d9c19

Browse files
authored
Merge pull request #13048 from quarto-dev/bugfix/5879
further improvement to kbd shortcode for unicode keys
2 parents 8217553 + 1bd5442 commit 58d9c19

File tree

1 file changed

+1
-1
lines changed
  • src/resources/extensions/quarto/kbd/resources

1 file changed

+1
-1
lines changed

src/resources/extensions/quarto/kbd/resources/kbd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"control": "⌃",
2626
"option": "⌥",
2727
};
28-
const keyRegex = /^[a-z0-9_]+$/;
28+
const keyRegex = /^[^\s]+$/;
2929
// use a non-capturing group to avoid capturing the key names
3030

3131
const macosModifiersRegex = new RegExp(

0 commit comments

Comments
 (0)