Skip to content

Commit

Permalink
Use last 6 digits of external ID (#4588)
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed May 26, 2024
1 parent 999b87a commit f4f35ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/src/shared/utils/structured_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { slugify } from "./string_utils";
export function makeStructuredDataTableName(name: string, externalId: string) {
const lowercasedExternalId = externalId.toLowerCase();
const externalIdPrefix = lowercasedExternalId.substring(0, 4);
const externalIdSuffix = lowercasedExternalId.slice(-4);
const externalIdSuffix = lowercasedExternalId.slice(-6);

const truncatedName = name.substring(0, 32);

Expand Down

0 comments on commit f4f35ec

Please sign in to comment.