Skip to content

Commit f717895

Browse files
jasnelladuh95
andauthored
Apply suggestion from @aduh95
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 6de982a commit f717895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/signed-off-by.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export default {
3939
const signoffPattern = /^Signed-off-by: /i
4040
const validSignoff = /^Signed-off-by: .+ <[^@]+@[^@]+\.[^@]+>/i
4141
const signoffs = parsed.body
42+
.filter((line) => signoffPattern.test(line))
4243
.map((line, i) => [line, i])
43-
.filter(([line]) => signoffPattern.test(line))
4444

4545
if (signoffs.length === 0) {
4646
context.report({

0 commit comments

Comments
 (0)