From aabb352656103d5e50d16f8273b77cec87d1b356 Mon Sep 17 00:00:00 2001 From: nntthuy-axonivy Date: Thu, 12 Dec 2024 15:08:34 +0700 Subject: [PATCH] Fix regex get exact h2 name --- .../main/java/com/axonivy/market/util/ProductContentUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marketplace-service/src/main/java/com/axonivy/market/util/ProductContentUtils.java b/marketplace-service/src/main/java/com/axonivy/market/util/ProductContentUtils.java index 9a9e0b8c..9aa00d27 100644 --- a/marketplace-service/src/main/java/com/axonivy/market/util/ProductContentUtils.java +++ b/marketplace-service/src/main/java/com/axonivy/market/util/ProductContentUtils.java @@ -22,7 +22,7 @@ import static com.axonivy.market.constants.ProductJsonConstants.DEFAULT_PRODUCT_TYPE; public class ProductContentUtils { - public static final String DEMO_SETUP_TITLE = "(?i)## Demo|## Setup"; + public static final String DEMO_SETUP_TITLE = "(?m)^## (Demo|Setup)$"; private static final String HASH = "#"; public static final String DESCRIPTION = "description"; public static final String DEMO = "demo";