From 7a4130efa96a4f1a4c5f03a59bcd54eccac26c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Robles?= Date: Sat, 14 Dec 2024 21:15:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20bounded=20lists=20with=20unregul?= =?UTF-8?q?ar=20characters=20in=20the=20liste=20name=20(#217)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parent issue: https://github.com/sequentech/meta/issues/4182 --------- Co-authored-by: Eduardo Robles --- app/models/Models.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Models.scala b/app/models/Models.scala index 45ca985..8bc2ff0 100644 --- a/app/models/Models.scala +++ b/app/models/Models.scala @@ -861,7 +861,7 @@ case class Question( url => (url.url == "true" && url.title == "isCategoryList") }.length > 0 } - .map { answer => answer.text } + .map { answer => answer.text.replace("&", "&").replace("+", "+") } .toSet assert( categoryNames == answerCategoryNames,