Skip to content

Commit 9bdf72d

Browse files
committed
build: correctly match dot in '.config' in commitlint configuration
1 parent e3bfe75 commit 9bdf72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const ls = path =>
55
readdirSync(path)
66
.filter(f => statSync(join(path, f)).isFile())
77
.map(
8-
f => `${path.split(sep).reverse()[0]}/${f.replace(/(.config)?.js/, '')}`,
8+
f => `${path.split(sep).reverse()[0]}/${f.replace(/(\.config)?.js/, '')}`,
99
)
1010

1111
module.exports = {

0 commit comments

Comments
 (0)