1 parent 5e911b6 commit 4e09695Copy full SHA for 4e09695
1 file changed
.github/scripts/sync-meetup-events.mjs
@@ -115,8 +115,8 @@ async function groups() {
115
const frontMatter = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
116
if (!frontMatter) return;
117
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);
+ for (const [, url] of frontMatter[1].matchAll(/^\s*url:\s*["']?(https?:\/\/[^\s"']+)["']?\s*$/gmi)) {
+ const match = url.match(/^https:\/\/(?:www\.)?meetup\.com\/([^\/?#]+)(?:[\/?#]|$)/i);
120
if (match) urlnames.add(match[1]);
121
}
122
}));
0 commit comments