Closed kamyar-nemati closed 8 months ago
Interesting.
Seems that envfile should use https://github.com/bevry/normalify then.
Happy for you to send a PR.
I do have to merge https://github.com/bevry/envfile/pull/213 sometime as well.
@nampnq in your opinion, would https://github.com/bevry/normalify be suitable for this?
I think we can handle by just check value.startsWith() && value.endsWith()
by double quote, or single quote, then we get substring of value
@NamPNQ in your opinion, would https://github.com/bevry/normalify be suitable for this?
IMO, use this will make unexpected behavior, because env value is always is string, not number nor boolean
Given the ENV file below:
---env begins here---
---env ends here---
The JSON value of
APP_COMM_CRED
is deformed and the "key" attributes lose their double-quotes after performing theparse
function.