aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resolver/package_json.zig2
-rw-r--r--src/string_immutable.zig2
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) {