Skip to content

Commit 1cf6eb4

Browse files
committed
refactor(flatmap): fixed lint recommendation
1 parent 723b282 commit 1cf6eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function buildMentionsRegexp({mentionsPrefixes}) {
4747

4848
function buildRefRegexp({actions, delimiters, issuePrefixes, issueURLSegments, hosts}) {
4949
return `(?:(?:[^\\w\\n\\v\\r]|^)+(${join(
50-
[].concat(...Object.keys(actions).map(key => actions[key]))
50+
Object.keys(actions).flatMap(key => actions[key])
5151
)}))?(?:[^\\w\\n\\v\\r]|^|(?: |\\t)*(?:${join([' ', '\t', ...delimiters])})(?: |\\t)*)${
5252
hosts.length > 0 ? `(?:${join(hosts)})?` : ''
5353
}((?:(?:[\\w-\\.]+)\\/)+(?:[\\w-\\.]+))?(${join([...issuePrefixes, ...issueURLSegments])})(\\d+)(?!\\w)`;

0 commit comments

Comments
 (0)