Update plugins/catalog-backend/src/ingestion/processors/codeowners/resolve.ts

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Iain Billett <iain@roadie.io>
This commit is contained in:
Iain Billett
2021-07-08 15:02:26 +01:00
parent 8b048934bc
commit e1f97de053
@@ -42,7 +42,7 @@ export function normalizeCodeOwner(owner: string) {
if (owner.match(GROUP_PATTERN)) {
return owner.split('/')[1];
} else if (owner.match(USER_PATTERN)) {
return `user:${owner.substring(1)}`;
return `User:${owner.substring(1)}`;
} else if (owner.match(EMAIL_PATTERN)) {
return owner.split('@')[0];
}