Fix parsing of variable without a value by bbc2 · Pull Request #158 · theskumar/python-dotenv
In Python, `\s` also matches newlines. This would cause newlines to be
consumed by the equal sign matcher, resulting in the next line being
considered as a value.
For instance, the following would be parsed as `[("FOO", "BAR=b")]`
instead of [("FOO", ""), ("BAR", "b")].
```bash
FOO=
BAR=b
```
Fixes theskumar#157.
bbc2
deleted the
fix-empty-var-bug
branch
johnbergvall pushed a commit to johnbergvall/python-dotenv that referenced this pull request
Aug 13, 2021In Python, `\s` also matches newlines. This would cause newlines to be
consumed by the equal sign matcher, resulting in the next line being
considered as a value.
For instance, the following would be parsed as `[("FOO", "BAR=b")]`
instead of [("FOO", ""), ("BAR", "b")].
```bash
FOO=
BAR=b
```
Fixes theskumar#157.
This file contains hidden or 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