bun add and bun remove sorta works now. but not fast enough!

This commit is contained in:
Jarred Sumner
2021-12-08 05:21:03 -08:00
parent 393aa076bc
commit 3036cbe552
4 changed files with 96 additions and 58 deletions

View File

@@ -241,6 +241,7 @@ test "StringOrTinyString Lowercase" {
try std.testing.expectEqualStrings("hello!!!!!", str.slice());
}
/// startsWith except it checks for non-empty strings
pub fn hasPrefix(self: string, str: string) bool {
return str.len > 0 and startsWith(self, str);
}