Skip to content

Commit

Permalink
Force the entire KC string to match shiftedKcRegExp
Browse files Browse the repository at this point in the history
This is useful to avoid false positives like "RCTL(S(KC_A))".
  • Loading branch information
precondition committed Aug 12, 2022
1 parent b193c2b commit 7f97d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n/keymap_extras/convert_keymap_extras_header.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function computeKcInfo(lines, intl2us) {
keysym: readableKeysym,
name: readableKeysym
});
const shiftedKcRegExp = /S\(\w+\)/;
const shiftedKcRegExp = /^S\(\w+\)$/;
if (shiftedKcRegExp.test(macroExpansion)) {
const basicKc = extractBasicKc(macroExpansion);
const basicUSKc = translateToUS(basicKc, intl2us);
Expand Down

0 comments on commit 7f97d24

Please sign in to comment.