mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: keep char literal, ' (#11060)
This commit is contained in:
@@ -75,7 +75,7 @@ pub fn resolve_env_value(str string, check_for_presence bool) ?string {
|
||||
if ch.is_letter() || ch.is_digit() || ch == `_` {
|
||||
env_lit += ch.ascii_str()
|
||||
} else {
|
||||
if !(ch == `\'` || ch == `)`) {
|
||||
if !(ch == `'` || ch == `)`) {
|
||||
if ch == `$` {
|
||||
return error('cannot use string interpolation in compile time \$env() expression')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user