diff options
author | 2021-09-21 18:07:23 -0700 | |
---|---|---|
committer | 2021-09-21 18:07:23 -0700 | |
commit | 42c1d54b3f3890e97cd0d5665fcd95fe59b462cf (patch) | |
tree | 2e91deb5755e944e1b10ba2f5f473dbbe47784f8 | |
parent | 5e634cd612fa6320ec0f72eeac2a4c3a2d2f1869 (diff) | |
download | bun-42c1d54b3f3890e97cd0d5665fcd95fe59b462cf.tar.gz bun-42c1d54b3f3890e97cd0d5665fcd95fe59b462cf.tar.zst bun-42c1d54b3f3890e97cd0d5665fcd95fe59b462cf.zip |
`endsWithAny` -> `endsWithAnyComptime`
-rw-r--r-- | src/resolver/package_json.zig | 2 | ||||
-rw-r--r-- | src/string_immutable.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/resolver/package_json.zig b/src/resolver/package_json.zig index 93ca3b481..17d1b4494 100644 --- a/src/resolver/package_json.zig +++ b/src/resolver/package_json.zig @@ -750,7 +750,7 @@ pub const ExportsMap = struct { map_data_ranges[i] = key_range; map_data_entries[i] = this.visit(prop.value.?); - if (strings.endsWithAny(key, "/*")) { + if (strings.endsWithAnyComptime(key, "/*")) { expansion_keys[expansion_key_i] = Entry.Data.Map.MapEntry{ .value = map_data_entries[i], .key = key, diff --git a/src/string_immutable.zig b/src/string_immutable.zig index b657c26cd..7010cd538 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -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) { |