fix(sync-maintainers): url doesn't exist anymore (#1692)

This commit is contained in:
Hammy authored and GitHub committed 2025-04-05 00:13:20 +01:00
1 parent c6ad90ef85
commit f165046a9b
1 file changed
+3 -5
+3 -5
View File
@@ -18,11 +18,9 @@ const maintainers = [
Object.values(userstyles).flatMap(( Object.values(userstyles).flatMap((
style: Userstyle, style: Userstyle,
) => ) =>
style["current-maintainers"].map((m) => { style["current-maintainers"].map((name) => {
const username = m.url.split("github.com/")?.pop(); assert.assertExists(name);
// Check that they follow github.com/username pattern. return name.toLowerCase();
assert.assertExists(username);
return username.toLowerCase();
}) })
), ),
), ),