godotenv icon indicating copy to clipboard operation
godotenv copied to clipboard

fix: In Parsing expandVariables return unchanged value if not exists in envMap or os-environ

Open vaibhavmunjal opened this issue 4 years ago • 1 comments

  • [x] BUG: Variable not correct (https://github.com/joho/godotenv/issues/127)

With regex expression (\\)?(\$)(\()?\{?([A-Z0-9_]+)?\}? https://regex101.com/r/IM10C6/1 any value after $ is treating as variable, Variable is checked in envMap and return empty string if not found, causing some values to cut down e.g. https://github.com/joho/godotenv/issues/127#issuecomment-787426255

vaibhavmunjal avatar Feb 28 '21 12:02 vaibhavmunjal

This is pretty much a duplicate of #72

luisdavim avatar May 15 '22 19:05 luisdavim