mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
fix(spotify): trim whitespace before processing
This commit is contained in:
parent
bdc34aeeb7
commit
a7c60c36a5
|
@ -22,6 +22,7 @@ func (s *Spotify) Enabled() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, record := range records {
|
for _, record := range records {
|
||||||
|
record = strings.TrimSpace(record)
|
||||||
fields := strings.Split(record, ",")
|
fields := strings.Split(record, ",")
|
||||||
if len(fields) == 0 {
|
if len(fields) == 0 {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue