mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +00:00
refactor(misc): fix a handful of TODO
This commit is contained in:
parent
06cbf1b3b3
commit
485baf9654
9 changed files with 18 additions and 27 deletions
|
@ -88,7 +88,7 @@ func filterValidXMLChar(r rune) rune {
|
|||
|
||||
// This function is copied from encoding/xml's procInst and adapted for []bytes instead of string
|
||||
func getEncoding(b []byte) string {
|
||||
// TODO: this parsing is somewhat lame and not exact.
|
||||
// This parsing is somewhat lame and not exact.
|
||||
// It works for all actual cases, though.
|
||||
idx := bytes.Index(b, []byte("encoding="))
|
||||
if idx == -1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue