This commit is contained in:
Matthew Holt 2022-09-15 14:13:58 -06:00
parent e6c58fdc08
commit 49b7a25264
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -153,7 +153,7 @@ func Format(input []byte) []byte {
openBraceWritten = true openBraceWritten = true
nextLine() nextLine()
newLines = 0 newLines = 0
// prevent infinite nesting from ridiculous inputs (issue #4175) // prevent infinite nesting from ridiculous inputs (issue #4169)
if nesting < 10 { if nesting < 10 {
nesting++ nesting++
} }