File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,16 @@ const analyzeModule = (str: string): Module[] => {
70
70
if ( / 春 [ A B C ] * B / gm. test ( str ) ) result . push ( Module . SpringB )
71
71
if ( / 春 [ A B C ] * C / gm. test ( str ) ) result . push ( Module . SpringC )
72
72
73
+ // 春季休業中のマッチング
74
+ if ( str . includes ( Module . SpringVacation ) ) result . push ( Module . SpringVacation )
75
+
73
76
if ( / 秋 [ A B C ] * A / gm. test ( str ) ) result . push ( Module . FallA )
74
77
if ( / 秋 [ A B C ] * B / gm. test ( str ) ) result . push ( Module . FallB )
75
78
if ( / 秋 [ A B C ] * C / gm. test ( str ) ) result . push ( Module . FallC )
76
79
77
- // 特殊系のマッチング(通年、夏季休業中、春季休業中)
78
- if ( str . includes ( Module . Annual ) ) result . push ( Module . Annual )
79
- if ( str . includes ( Module . SpringVacation ) ) result . push ( Module . SpringVacation )
80
+ // 秋季休業中、通年のマッチング
80
81
if ( str . includes ( Module . SummerVacation ) ) result . push ( Module . SummerVacation )
82
+ if ( str . includes ( Module . Annual ) ) result . push ( Module . Annual )
81
83
82
84
//どのモジュールにも判定されなかったが空文字ではない場合、仮にunknownとする
83
85
if ( str !== '' && result . length === 0 ) result . push ( Module . Unknown )
You can’t perform that action at this time.
0 commit comments