Fix: regression in custom_env parser ignoring lines after comment
This commit is contained in:
1 parent
bc6c727163
commit
cf2ea1f478
1 file changed
+2
-2
@@ -56,10 +56,10 @@ void init_loadCustomEnv() {
|
||||
|
||||
for (NSString *line in lines) {
|
||||
if (line.length == 0 || [line hasPrefix:@"#"]) {
|
||||
return;
|
||||
continue;
|
||||
} else if (![line containsString:@"="]) {
|
||||
NSLog(@"[Pre-init] Warning: skipped empty value custom env: %@", line);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
NSRange range = [line rangeOfString:@"="];
|
||||
NSString *key = [line substringToIndex:range.location];
|
||||
|
||||
Reference in new issue
Block a user