Skip to content

Commit

Permalink
fix: Add polar to FUNDING.yml support
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejsil committed Dec 29, 2024
1 parent 4386a45 commit 81a126c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Package.zig
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ fn fundingYmlToUrls(arena: std.mem.Allocator, string: []const u8) ![]const []con
.{ "liberapay", "https://liberapay.com/" },
.{ "patreon", "https://www.patreon.com/" },
.{ "open_collective", "https://opencollective.com/" },
.{ "polar", "https://polar.sh/" },
});

var tok = Tokenizer{ .str = string };
Expand Down Expand Up @@ -614,13 +615,15 @@ test fundingYmlToUrls {
\\ko_fi: [test]
\\liberapay: [test]
\\open_collective: [test]
\\polar: [test]
,
&.{
"https://www.patreon.com/test",
"https://buymeacoffee.com/test",
"https://ko-fi.com/test",
"https://liberapay.com/test",
"https://opencollective.com/test",
"https://polar.sh/test",
},
);
try expectFundingUrls(
Expand Down

0 comments on commit 81a126c

Please sign in to comment.