Skip to content

Commit

Permalink
Fixes small issue with todo description being empty
Browse files Browse the repository at this point in the history
  • Loading branch information
vega113 committed Nov 20, 2023
1 parent a647d80 commit 4bc6741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/service/NoteTodoService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class NoteTodoServiceImpl @Inject()(databaseExecutionContext: DatabaseExecutionC
override def extractTodos(text: String): List[NoteTodo] = {
val todoRegex = "(?s)(?<=\\[\\[).+?(?=]])".r
todoRegex.findAllIn(text).toList.map(todo => NoteTodo(None, titleService.makeTitle(todo), todo, isAccepted = false,
isAi = false))
isAi = false)).filter(_.description.nonEmpty)
}

override def fetchById(id: Long): Future[Option[NoteTodo]] = {
Expand Down

0 comments on commit 4bc6741

Please sign in to comment.