We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c345b7e commit 54dfedaCopy full SHA for 54dfeda
src/utils/validateCommits.ts
@@ -13,8 +13,8 @@ export function validateCommitOrder(positions: string[]): boolean {
13
current = { level: 0, step: 0 };
14
return;
15
} else {
16
- const levelMatch = position.match(/^L([0-9])+$/);
17
- const stepMatch = position.match(/^L([0-9])+S([0-9])+$/);
+ const levelMatch = position.match(/^L([0-9]+)Q?$/);
+ const stepMatch = position.match(/^L([0-9]+)S([0-9]+)[Q|A]?$/);
18
if (levelMatch) {
19
// allows next level or step
20
const [_, levelString] = levelMatch;
@@ -28,7 +28,7 @@ export function validateCommitOrder(positions: string[]): boolean {
28
current = { level, step };
29
30
// error
31
- console.error(`Invalid commit position: ${position}`);
+ console.warn(`Invalid commit position: ${position}`);
32
33
}
34
if (
0 commit comments