This repository was archived by the owner on Feb 21, 2020. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export function parseHeader(header) {
37
37
38
38
// because the last question mark, which we totally need
39
39
// eslint-disable-next-line unicorn/no-unsafe-regex
40
- const regex = / ^ ( \w + ) (?: \( ( .+ ) \) ) ? : ( .+ ) $ / ;
40
+ const regex = / ^ ( \w + ) (?: \( ( .+ ) \) ) ? : ( .+ ) $ / i ;
41
41
if ( ! regex . test ( header ) ) {
42
42
throw new TypeError ( errorMsg ) ;
43
43
}
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ export default function increment(commit) {
14
14
let isBreaking = isBreakingChange ( commit ) ;
15
15
let commitIncrement = false ;
16
16
17
- if ( / f i x | b u g f i x | p a t c h / . test ( commit . header . type ) ) {
17
+ if ( / f i x | b u g f i x | p a t c h / i . test ( commit . header . type ) ) {
18
18
commitIncrement = 'patch' ;
19
19
}
20
- if ( / f e a t | f e a t u r e | m i n o r / . test ( commit . header . type ) ) {
20
+ if ( / f e a t | f e a t u r e | m i n o r / i . test ( commit . header . type ) ) {
21
21
commitIncrement = 'minor' ;
22
22
}
23
- if ( / b r e a k | b r e a k i n g | m a j o r / . test ( commit . header . type ) || isBreaking ) {
23
+ if ( / b r e a k | b r e a k i n g | m a j o r / i . test ( commit . header . type ) || isBreaking ) {
24
24
commitIncrement = 'major' ;
25
25
}
26
26
isBreaking = isBreaking || commitIncrement === 'major' ;
You can’t perform that action at this time.
0 commit comments