Skip to content

Commit 929edbc

Browse files
authored
chore: commitlint scopes for versioned elements (#3117)
1 parent 73b2389 commit 929edbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const normalizeWorkspace = async x => {
55
const ents = await readdir(fileURLToPath(new URL(x, import.meta.url)), { withFileTypes: true });
66
return ents
77
.filter(ent => ent.isDirectory())
8-
.map(ent => ent.name.replace('pf-', ''));
8+
.map(ent => ent.name.replace(/^pf-(?:v\d+-)?/, ''));
99
};
1010

1111

0 commit comments

Comments
 (0)