Skip to content

Commit a794658

Browse files
committed
formatting
1 parent 3b416b8 commit a794658

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/ohm-js/src/pexprs-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class UnicodeChar extends PExpr {
189189
this.pattern = UnicodeBinaryProperties[categoryOrProp];
190190
} else {
191191
throw new Error(
192-
`Invalid Unicode category or property name: ${JSON.stringify(categoryOrProp)}`
192+
`Invalid Unicode category or property name: ${JSON.stringify(categoryOrProp)}`,
193193
);
194194
}
195195
}

packages/wasm/src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,10 @@ export class Compiler {
16971697
asciiChars.map(c => {
16981698
const isLowercase = 'a' <= c && c <= 'z';
16991699
const isUppercase = 'A' <= c && c <= 'Z';
1700-
if ((exp.categoryOrProp === 'Lu' && isUppercase) || (exp.categoryOrProp === 'Ll' && isLowercase)) {
1700+
if (
1701+
(exp.categoryOrProp === 'Lu' && isUppercase) ||
1702+
(exp.categoryOrProp === 'Ll' && isLowercase)
1703+
) {
17011704
return w.labelidx(asm.depthOf('fastSuccess'));
17021705
}
17031706
return w.labelidx(asm.depthOf('failure'));

0 commit comments

Comments
 (0)