aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Finn R. Gärtner <65015656+FinnRG@users.noreply.github.com> 2022-07-13 11:33:32 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-13 02:33:32 -0700
commit2769c74c745aa467b26d55f8f7f176e181c36e76 (patch)
tree61505251311bbcefd89150c71aeb8c9d1255d8fb
parent64c93a0569e8b6b74b3271b6cc10ac38c0831204 (diff)
downloadbun-2769c74c745aa467b26d55f8f7f176e181c36e76.tar.gz
bun-2769c74c745aa467b26d55f8f7f176e181c36e76.tar.zst
bun-2769c74c745aa467b26d55f8f7f176e181c36e76.zip
fix(env_loader): Off by one error (#668)
-rw-r--r--src/env_loader.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env_loader.zig b/src/env_loader.zig
index c7dc079e8..f8d71be56 100644
--- a/src/env_loader.zig
+++ b/src/env_loader.zig
@@ -363,7 +363,7 @@ pub const Lexer = struct {
},
' ' => {
// Set key end to the last non space character
- key_end = this.current - 1;
+ key_end = this.current;
this.step();
while (this.codepoint() == ' ') this.step();
continue;