Skip to content

Commit 4e09695

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5e911b6 commit 4e09695

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/sync-meetup-events.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ async function groups() {
115115
const frontMatter = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
116116
if (!frontMatter) return;
117117

118-
for (const [, url] of frontMatter[1].matchAll(/^\s+url:\s*["']?(https?:\/\/[^\s"']+)["']?\s*$/gmi)) {
119-
const match = url.match(/^https:\/\/(?:www\.)?meetup\.com\/([^/?#]+)\/?$/i);
118+
for (const [, url] of frontMatter[1].matchAll(/^\s*url:\s*["']?(https?:\/\/[^\s"']+)["']?\s*$/gmi)) {
119+
const match = url.match(/^https:\/\/(?:www\.)?meetup\.com\/([^\/?#]+)(?:[\/?#]|$)/i);
120120
if (match) urlnames.add(match[1]);
121121
}
122122
}));

0 commit comments

Comments
 (0)