mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
endsWithAny -> endsWithAnyComptime
This commit is contained in:
@@ -252,7 +252,7 @@ pub fn quotedAlloc(allocator: *std.mem.Allocator, self: string) !string {
|
||||
}
|
||||
|
||||
pub fn endsWithAnyComptime(self: string, comptime str: string) bool {
|
||||
if (str.len < 10) {
|
||||
if (comptime str.len < 10) {
|
||||
const last = self[self.len - 1];
|
||||
inline while (str) |char| {
|
||||
if (char == last) {
|
||||
|
||||
Reference in New Issue
Block a user