Fix: regression in custom_env parser ignoring lines after comment

This commit is contained in:
Duy Tran Khanh authored and khanhduytran0 committed 2023-03-03 21:49:35 +07:00
1 parent bc6c727163
commit cf2ea1f478
1 file changed
+2 -2
+2 -2
View File
@@ -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];