Skip to content

Commit

Permalink
Fixed #11: Allow Confluence Space to be mixed case
Browse files Browse the repository at this point in the history
Swap `ToUpper` for `TrimSpace` in meta parser to leave the case as it
was passed.
  • Loading branch information
dauc committed Nov 22, 2019
1 parent 22f3e6c commit 4c5b505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mark/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c5b505

Please sign in to comment.