Skip to content

Commit

Permalink
fix: allow more than 2 keybindings per command
Browse files Browse the repository at this point in the history
  • Loading branch information
gouegd authored and 71 committed Jun 7, 2023
1 parent 3a75750 commit dd69f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export function parseKeys(keys: string) {
return [];
}

return keys.replace("\n", ", ").split(/ *, (?=`)/g).map((keyString) => {
return keys.replace(/\n/g, ", ").split(/ *, (?=`)/g).map((keyString) => {
const [,, rawKeybinding, rawMetadata] = /^(`+)(.+?)\1 \((.+?)\)$/.exec(keyString)!,
keybinding = rawKeybinding.trim().replace(
specialCharacterRegExp, (m) => (specialCharacterMapping as Record<string, string>)[m]),
Expand Down

0 comments on commit dd69f4b

Please sign in to comment.