Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54dfeda

Browse files
committed
fix level/step match in commit order
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parentc345b7e commit54dfeda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/utils/validateCommits.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export function validateCommitOrder(positions: string[]): boolean {
1313
current={level:0,step:0};
1414
return;
1515
}else{
16-
constlevelMatch=position.match(/^L([0-9])+$/);
17-
conststepMatch=position.match(/^L([0-9])+S([0-9])+$/);
16+
constlevelMatch=position.match(/^L([0-9]+)Q?$/);
17+
conststepMatch=position.match(/^L([0-9]+)S([0-9]+)[Q|A]?$/);
1818
if(levelMatch){
1919
// allows next level or step
2020
const[_,levelString]=levelMatch;
@@ -28,7 +28,7 @@ export function validateCommitOrder(positions: string[]): boolean {
2828
current={ level, step};
2929
}else{
3030
// error
31-
console.error(`Invalid commit position:${position}`);
31+
console.warn(`Invalid commit position:${position}`);
3232
return;
3333
}
3434
if(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp