Skip to content

Commit 98a9084

Browse files
authored
Merge pull request #46 from dotenv-linter/multi-line-values
Add example of support for multi-line values
2 parents 73e04ae + 76cdbe9 commit 98a9084

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/checks/quote_character.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Quote Character
22

3-
Detects if a value contains quote characters (`'` / `"`) but skips if the value contains whitespaces or newline characters:
3+
Detects if a value contains quote characters (`'` / `"`) but skips if the value is multi-line, contains whitespaces or newline characters:
44

55
```env
66
❌ Wrong
@@ -12,9 +12,6 @@ FOO='BAR'
1212
❌ Wrong
1313
FOO='B"AR'
1414
15-
✅ Correct
16-
FOO="multi\nline"
17-
1815
✅ Correct
1916
FOO=BAR
2017
@@ -26,4 +23,9 @@ FOO='BAR BAR'
2623
2724
✅ Correct
2825
FOO="BAR\nBAR"
26+
27+
✅ Correct
28+
MULTILINE='{
29+
"key": value
30+
}'
2931
```

0 commit comments

Comments
 (0)