1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-02 16:38:37 +00:00

Update XML encoding regex to take single quotes into consideration

This commit is contained in:
Frédéric Guillot 2018-12-12 21:13:06 -08:00
parent 266d97ad63
commit 82e08d0f69
3 changed files with 6219 additions and 1 deletions

View file

@ -15,7 +15,7 @@ import (
"golang.org/x/net/html/charset"
)
var xmlEncodingRegex = regexp.MustCompile(`<\?xml(.*)encoding="(.+)"(.*)\?>`)
var xmlEncodingRegex = regexp.MustCompile(`<\?xml(.*)encoding=["'](.+)["'](.*)\?>`)
// Response wraps a server response.
type Response struct {