Skip to content

Commit

Permalink
Support parentheses in joinComplementalKeybindings() #296
Browse files Browse the repository at this point in the history
  • Loading branch information
tshino committed Dec 25, 2023
1 parent 1861952 commit eb5953c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generator/verify_wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ const joinComplementalKeybindings = function(keybindings) {
if (!w1 || !w2) {
continue;
}
const p1 = w1.split('||');
const p2 = w2.split('||');
const p1 = genWrapperUtil.decomposeWhenClause(w1);
const p2 = genWrapperUtil.decomposeWhenClause(w2);
if (p1.length !== p2.length) {
continue;
}
const f1 = p1.map(p => p.split('&&').map(f => f.trim()));
const f2 = p2.map(p => p.split('&&').map(f => f.trim()));
const f1 = p1.map(p => p.map(f => f.trim()));
const f2 = p2.map(p => p.map(f => f.trim()));
if (!util.isDeepStrictEqual(f1.map(f => f.length), f2.map(f => f.length))) {
continue;
}
Expand Down

0 comments on commit eb5953c

Please sign in to comment.