Skip to content

Commit 30e44aa

Browse files
authored
Merge pull request #24 from InditexTech/fix/23-allow-separate-lines
fix: allow new lines to avoid errors
2 parents df82e50 + 218756b commit 30e44aa

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

dist/index.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export async function run(): Promise<void> {
2424
core.info(`🔨 Organization: ${org}`)
2525

2626
const github = getOctokit(token)
27-
const users = maintainers.split(/[, ]+/).map((u) => u.replace(/^@/, ''))
27+
const users = maintainers
28+
.split(/[,\s]+/)
29+
.map((u) => u.replace(/^@/, ''))
30+
.filter((u) => u.length > 0)
2831

2932
// Parse owner/repo
3033
let srcOwner, srcRepo

0 commit comments

Comments
 (0)