extractSlugsFromTiltifyUrl("https://tiltify.com/@alice/spring");
// { fundraiserType: "user", fundraiserSlug: "alice", campaignSlug: "spring" }
extractSlugsFromTiltifyUrl("/@alice/spring");
// { fundraiserType: "user", fundraiserSlug: "alice", campaignSlug: "spring" }
extractSlugsFromTiltifyUrl("https://tiltify.com/+team-foo/bar");
// { fundraiserType: "team", fundraiserSlug: "team-foo", campaignSlug: "bar" }
extractSlugsFromTiltifyUrl("not-a-url"); // null
Extracts fundraiser + campaign slugs from a Tiltify URL.
Accepts both absolute and relative URLs (see module-level docs). Returns
nullif the URL doesn't match the@user/campaignor+team/campaignshape, or if the URL is malformed.