Skip to content

Commit

Permalink
fix: hygraph assets urls can have capital letters
Browse files Browse the repository at this point in the history
Hygraph now allows uppercase letters in their env and asset ids
  • Loading branch information
nicksrandall authored Jan 16, 2025
1 parent 4f93081 commit 6b0ba37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/hygraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from "../types.ts";

const hygraphRegex =
/https:\/\/(?<region>[a-z0-9-]+)\.graphassets\.com\/(?<envId>[a-z0-9]+)(?:\/(?<transformations>.*?))?\/(?<handle>[a-z0-9]+)$/;
/https:\/\/(?<region>[a-z0-9-]+)\.graphassets\.com\/(?<envId>[a-zA-Z0-9]+)(?:\/(?<transformations>.*?))?\/(?<handle>[a-zA-Z0-9]+)$/;

export interface HygraphParams {
region?: string;
Expand Down

0 comments on commit 6b0ba37

Please sign in to comment.