Skip to content

Commit 76cdbe9

Browse files
committed
Add example of support for multi-line values
Signed-off-by: Mikhail Grachev <work@mgrachev.com>
1 parent 33b60e9 commit 76cdbe9

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)