Skip to content

Commit

Permalink
refactor(flatmap): fixed lint recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Mar 8, 2024
1 parent 723b282 commit 1cf6eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function buildMentionsRegexp({mentionsPrefixes}) {

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

0 comments on commit 1cf6eb4

Please sign in to comment.