Fixed #11: Allow Confluence Space to be mixed case

Swap `ToUpper` for `TrimSpace` in meta parser to leave the case as it
was passed.
This commit is contained in:
Devin Auclair 2019-11-22 15:20:44 -05:00
parent 22f3e6ce76
commit 4c5b505b38

View File

@ -78,7 +78,7 @@ func ExtractMeta(data []byte) (*Meta, []byte, error) {
meta.Parents = append(meta.Parents, value)
case HeaderSpace:
meta.Space = strings.ToUpper(value)
meta.Space = strings.TrimSpace(value)
case HeaderTitle:
meta.Title = strings.TrimSpace(value)