21139: Fix mixed-case tile variants.
[lightning.git] / taglib.go
index 36e1d2775d6b8372e63ef0bddd065dbdc580fc1d..892dafc2b37049c92884baee6762b07206c008af 100644 (file)
--- a/taglib.go
+++ b/taglib.go
@@ -64,6 +64,10 @@ func (taglib *tagLibrary) FindAll(in *bufio.Reader, passthrough io.Writer, fn fu
                }
 
                if passthrough != nil {
+                       if base >= 'A' && base <= 'Z' {
+                               // lowercase for passthrough
+                               base += 'a' - 'A'
+                       }
                        _, err = passthrough.Write([]byte{base})
                        if err != nil {
                                return err