diff options
author | 2023-01-10 15:35:20 +0200 | |
---|---|---|
committer | 2023-01-10 05:35:20 -0800 | |
commit | 270b07e85e82b46491cc713fb2a5bb973d3de4f6 (patch) | |
tree | b8071eaf835f2aefb8ee95c68f9002d84b7b5761 /src/linker.zig | |
parent | b458abedbb865461005757cac5ea2b458249ef25 (diff) | |
download | bun-270b07e85e82b46491cc713fb2a5bb973d3de4f6.tar.gz bun-270b07e85e82b46491cc713fb2a5bb973d3de4f6.tar.zst bun-270b07e85e82b46491cc713fb2a5bb973d3de4f6.zip |
use `strings.hasPrefixComptime()` (#1755)
Diffstat (limited to 'src/linker.zig')
-rw-r--r-- | src/linker.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linker.zig b/src/linker.zig index b9ce293cd..3d53dc1b1 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -304,7 +304,7 @@ pub const Linker = struct { } } - if (import_record.path.text.len > 4 and strings.eqlComptimeIgnoreLen(import_record.path.text[0.."bun:".len], "bun:")) { + if (strings.hasPrefixComptime(import_record.path.text, "bun:")) { import_record.path = Fs.Path.init(import_record.path.text["bun:".len..]); import_record.path.namespace = "bun"; |