Skip to content

Commit 36fbcc4

Browse files
committed
Merge branch 'master' of https://github.com/lichess-org/lila
2 parents a7fbf4f + 2b29010 commit 36fbcc4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

modules/study/src/main/Chapter.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ object Chapter:
165165

166166
def defaultName(order: Order) = StudyChapterName(s"Chapter $order")
167167

168-
private val defaultNameRegex = """Chapter \d+""".r
169-
def isDefaultName(n: StudyChapterName) = n.value.isEmpty || defaultNameRegex.matches(n.value)
170-
171168
def fixName(n: StudyChapterName) = StudyChapterName(lila.common.String.softCleanUp(n.value).take(80))
172169

173170
def nameFromPlayerTags(tags: Tags): Option[StudyChapterName] = StudyChapterName.from:

ui/analyse/src/study/chapterNewForm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export class StudyChapterNewForm {
6565
this.isOpen(true);
6666
this.loadVariants();
6767
this.initial(false);
68+
this.isDefaultName(true);
6869
};
6970

7071
toggle = () => (this.isOpen() ? this.isOpen(false) : this.open());

0 commit comments

Comments
 (0)