fix(publish): missing bins bugfix (#14488)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
Dylan Conway
2024-10-11 21:28:47 -07:00
committed by GitHub
parent f870293d30
commit d3323c84bb
8 changed files with 583 additions and 62 deletions

View File

@@ -6387,6 +6387,13 @@ pub fn withoutPrefixComptime(input: []const u8, comptime prefix: []const u8) []c
return input;
}
pub fn withoutPrefixComptimeZ(input: [:0]const u8, comptime prefix: []const u8) [:0]const u8 {
if (hasPrefixComptime(input, prefix)) {
return input[prefix.len..];
}
return input;
}
pub fn withoutPrefixIfPossibleComptime(input: string, comptime prefix: string) ?string {
if (hasPrefixComptime(input, prefix)) {
return input[prefix.len..];