From e90f3ced849d202453e8a7ec8165a57d6fc43fc3 Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Tue, 2 Jun 2026 18:49:50 +0200 Subject: [PATCH] fix: Make canteen food regex support misspelt delimiter --- .../io/github/tomhula/jecnaapi/parser/parsers/CanteenParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jecnaapi-canteen/src/commonMain/kotlin/io/github/tomhula/jecnaapi/parser/parsers/CanteenParser.kt b/jecnaapi-canteen/src/commonMain/kotlin/io/github/tomhula/jecnaapi/parser/parsers/CanteenParser.kt index e1e390a..43fdec8 100644 --- a/jecnaapi-canteen/src/commonMain/kotlin/io/github/tomhula/jecnaapi/parser/parsers/CanteenParser.kt +++ b/jecnaapi-canteen/src/commonMain/kotlin/io/github/tomhula/jecnaapi/parser/parsers/CanteenParser.kt @@ -203,7 +203,7 @@ internal object CanteenParser /** * Matches the whole item description. Match contains capturing groups listed in [ItemDescriptionRegexGroups]. */ - private val ITEM_DESCRIPTION_REGEX = Regex("""^(?<${ItemDescriptionRegexGroups.SOUP}>.*?), ;(?<${ItemDescriptionRegexGroups.REST}>.*)""") + private val ITEM_DESCRIPTION_REGEX = Regex("""^(?<${ItemDescriptionRegexGroups.SOUP}>.*?),? ;(?<${ItemDescriptionRegexGroups.REST}>.*)""") /** * Contains names of regex capture groups inside [ITEM_DESCRIPTION_REGEX].