[FIX] strtabs interpolation in nimscript (#15172)
* [FIX] strtabs interpolation in nimscript * [TEST] Use `static` in strtabs test
This commit is contained in:
parent
2a8bf470af
commit
e5dbdc1d37
2 changed files with 6 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ proc getValue(t: StringTableRef, flags: set[FormatFlag], key: string): string =
|
|||
when defined(js) or defined(nimscript):
|
||||
result = ""
|
||||
else:
|
||||
if useEnvironment in flags: result = os.getEnv(key).string
|
||||
if useEnvironment in flags: result = getEnv(key).string
|
||||
else: result = ""
|
||||
if result.len == 0:
|
||||
if useKey in flags: result = '$' & key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue