diff --git a/cf-admin-bot/src/main/java/org/commonhaus/automation/admin/api/ApplicationData.java b/cf-admin-bot/src/main/java/org/commonhaus/automation/admin/api/ApplicationData.java index 916fd85..8bcb68a 100644 --- a/cf-admin-bot/src/main/java/org/commonhaus/automation/admin/api/ApplicationData.java +++ b/cf-admin-bot/src/main/java/org/commonhaus/automation/admin/api/ApplicationData.java @@ -19,6 +19,7 @@ public class ApplicationData { "([\\s\\S]*?)([\\s\\S]*?)([\\s\\S]*?)", Pattern.CASE_INSENSITIVE); static final Pattern NOTES = Pattern.compile("([\\s\\S]*?)([\\s\\S]*?)([\\s\\S]*?)", Pattern.CASE_INSENSITIVE); + static final Pattern STRIP_COMMENTS = Pattern.compile("", Pattern.CASE_INSENSITIVE); transient String title; transient MembershipApplication application; @@ -103,8 +104,8 @@ public static String issueContent(MemberSession session, ApplicationPost applica """.formatted( session.login(), session.url(), - applicationPost.contributions(), - applicationPost.additionalNotes()); + STRIP_COMMENTS.matcher(applicationPost.contributions()).replaceAll(" "), + STRIP_COMMENTS.matcher(applicationPost.additionalNotes()).replaceAll(" ")); } public static String createTitle(MemberSession session) {