File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
application/src/main/java/org/togetherjava/tjbot/commands/help Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ public final class HelpSystemHelper {
31
31
private static final String CODE_SYNTAX_EXAMPLE_PATH = "codeSyntaxExample.png" ;
32
32
private static final String CATEGORY_GROUP = "category" ;
33
33
private static final String TITLE_GROUP = "title" ;
34
- private static final Pattern EXTRACT_CATEGORY_TITLE_PATTERN =
35
- Pattern .compile ("(?:\\ [(?<%s>. +)] )?(?<%s>.+)" .formatted (CATEGORY_GROUP , TITLE_GROUP ));
34
+ private static final Pattern EXTRACT_CATEGORY_TITLE_PATTERN = Pattern
35
+ .compile ("(?:\\ [(?<%s>[^ \\ [] +)] )?(?<%s>.+)" .formatted (CATEGORY_GROUP , TITLE_GROUP ));
36
36
37
37
private static final Pattern TITLE_COMPACT_REMOVAL_PATTERN = Pattern .compile ("\\ W" );
38
38
static final int TITLE_COMPACT_LENGTH_MIN = 2 ;
You can’t perform that action at this time.
0 commit comments