Rename CSV option from comma to delimiter

See #5555
This commit is contained in:
Bjørn Erik Pedersen 2018-12-23 21:08:12 +01:00
parent 2efc1a64c3
commit ce06bdb16a
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
6 changed files with 14 additions and 15 deletions

View file

@ -92,7 +92,7 @@ func FormatFromFrontMatterType(typ pageparser.ItemType) Format {
// in the given string.
// It return an empty string if no format could be detected.
func (d Decoder) FormatFromContentString(data string) Format {
csvIdx := strings.IndexRune(data, d.Comma)
csvIdx := strings.IndexRune(data, d.Delimiter)
jsonIdx := strings.Index(data, "{")
yamlIdx := strings.Index(data, ":")
tomlIdx := strings.Index(data, "=")