Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expandVar return 'null' instead of null when no matches #746

Closed
AlvaroVega opened this issue Sep 22, 2023 · 1 comment
Closed

expandVar return 'null' instead of null when no matches #746

AlvaroVega opened this issue Sep 22, 2023 · 1 comment

Comments

@AlvaroVega
Copy link
Member

OK case

> expandVar
[Function: expandVar]
> expandVar('${a}',{a:23},true)
23
> expandVar('${a}',{a:"23"},true)
23
> expandVar('${a}',{a:null},true)
null
> expandVar('${a}',{a:"null"},true)
null
> expandVar('${a}',{a:"boniato"},true)
'boniato'
>

NO OK case

> expandVar('${a}',{b:"boniato"},true)
'null'

'null' should be null

@AlvaroVega AlvaroVega changed the title expandVar return 'null' instead of `null when no matches expandVar return 'null' instead of null when no matches Sep 22, 2023
@AlvaroVega AlvaroVega changed the title expandVar return 'null' instead of null when no matches expandVar return 'null' instead of null when no matches Sep 22, 2023
@fgalan
Copy link
Member

fgalan commented Sep 22, 2023

Fixed in PR #747

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants