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:
parent
266d97ad63
commit
82e08d0f69
3 changed files with 6219 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue