Skip to content

Commit

Permalink
feat: add new properties to validProps in Config class
Browse files Browse the repository at this point in the history
  • Loading branch information
HashCookie committed Sep 29, 2024
1 parent 1ca4e96 commit 0a58349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class Config implements ConfigInterface {
private validateMatcher(matcherStr: string, lineNumber: number): void {
const errors: string[] = [];

const validProps = ['r.sub', 'r.obj', 'r.act', 'p.sub', 'p.obj', 'p.act', 'p.eft'];
const validProps = ['r.sub', 'r.obj', 'r.act', 'r.dom', 'p.sub', 'p.obj', 'p.act', 'p.dom', 'p.eft', 'p.sub_rule'];
const usedProps = matcherStr.match(/[rp]\.\w+/g) || [];
const invalidProps = usedProps.filter((prop) => !validProps.includes(prop));
if (invalidProps.length > 0) {
Expand Down

0 comments on commit 0a58349

Please sign in to comment.