mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
bun add and bun remove sorta works now. but not fast enough!
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user