From 32a7480e6c1f42464ffc5422c5bef675e5ae57af Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 16 Sep 2024 22:07:22 -0700 Subject: [PATCH] Fix bug in HTMLEntityDecoder. Make tests pass. --- Modules/Parser/Sources/SAX/HTMLEntityDecoder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Parser/Sources/SAX/HTMLEntityDecoder.swift b/Modules/Parser/Sources/SAX/HTMLEntityDecoder.swift index 2c629565f..15fd31e29 100644 --- a/Modules/Parser/Sources/SAX/HTMLEntityDecoder.swift +++ b/Modules/Parser/Sources/SAX/HTMLEntityDecoder.swift @@ -121,7 +121,7 @@ final class EntityScanner { scanLocation = initialScanLocation + 1 return nil } - scanLocation = initialScanLocation + 1 + scanLocation = scanLocation + 1 return decodedEntity }