forked from firebase/firebase-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug where dotenv file using quotes greedily consumes values. (fir…
…ebase#3703) Our parser for dotenv file format allows values to be wrapped inside single or double quotes. The regex we have for parsing these value is too greedy as implemented: ``` # .env A="abc" B="efg" ``` ``` parse(readFileSync(".env")) => { A: 'abc\nB="efg"' } ``` The change in regex correctly parses the dotenv file: ``` parse(readFileSync(".env")) => { A: "abc", B: "efg" } ```
- Loading branch information
1 parent
7710fd5
commit 63a77dc
Showing
3 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
- Fixes bug where functions packaged as ES module failed to load on Windows. (#3692) | ||
- Fixes bug parsing dotenv files with multiple quoted values (#3703) | ||
- Tracks use of runtime config and environment variables on function deploys. (#3704) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters