Skip to content

Commit 44a62fe

Browse files
committed
docs: clarify why numeric-only slugs cannot conflict with project IDs
1 parent 15015ff commit 44a62fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/api-client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,8 @@ export async function findProjectsBySlug(
802802
// accept the match (the user passed a numeric project ID).
803803
// For non-numeric inputs, verify the slug actually matches to
804804
// avoid false positives from coincidental ID collisions.
805+
// Note: Sentry enforces that project slugs must start with a letter,
806+
// so an all-digits input can only ever be a numeric ID, never a slug.
805807
if (!isNumericId && project.slug !== projectSlug) {
806808
return null;
807809
}

0 commit comments

Comments
 (0)