Skip to content

Commit

Permalink
chore(clerk-js): Update organization ID utility function description
Browse files Browse the repository at this point in the history
Co-authored-by: Izaak Lauer <[email protected]>
  • Loading branch information
wobsoriano and izaaklauer authored Jul 29, 2024
1 parent 7c61adf commit 3414e6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/clerk-js/src/utils/organization.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/**
* Checks and assumes a string is an organization ID if it starts with 'org_'.
* Checks and assumes a string is an organization ID if it starts with 'org_', specifically for
disambiguating with slugs. `_` is a disallowed character in slug names, so slugs cannot
start with `org_`.
*/
export function isOrganizationId(id: string) {
return id.startsWith('org_');
Expand Down

0 comments on commit 3414e6f

Please sign in to comment.