From d97bc531197f204618c3d4ff1fe6acc4183fcbc0 Mon Sep 17 00:00:00 2001 From: yahya lafhal Date: Wed, 23 Oct 2024 19:59:45 +0000 Subject: [PATCH] Use toLowerCase on the orientation color to handle it correctly --- modules/study/src/main/ChapterMaker.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/study/src/main/ChapterMaker.scala b/modules/study/src/main/ChapterMaker.scala index 4f24b18c69a84..f9b9c82d0d19c 100644 --- a/modules/study/src/main/ChapterMaker.scala +++ b/modules/study/src/main/ChapterMaker.scala @@ -218,7 +218,7 @@ private[study] object ChapterMaker: case Fixed(color: Color) extends Orientation(color.name, color.some) case Auto extends Orientation("automatic", none) object Orientation: - def apply(str: String) = Color.fromName(str).fold[Orientation](Auto)(Fixed.apply) + def apply(str: String) = Color.fromName(str.toLowerCase()).fold[Orientation](Auto)(Fixed.apply) case class Data( name: StudyChapterName,