You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 307b476
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: flexmark-ext-jira-ticket-links/src/main/java/com/vladsch/flexmark/ext/jira/tickets/JiraTicketExtension.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
public class JiraTicketExtension implements Parser.ParserExtension, HtmlRenderer.HtmlRendererExtension {
19
19
20
20
public static final DataKey<String> JIRA_URL = new DataKey<>("JIRA_URL", "https://your.atlassian.net/browse/");
21
+
public static final DataKey<String> JIRA_PROJECT_KEY_REGEX = new DataKey<>("JIRA_PROJECT_KEY_REGEX", "[A-Z][A-Z_0-9]+");
Copy file name to clipboardExpand all lines: flexmark-ext-jira-ticket-links/src/main/java/com/vladsch/flexmark/ext/jira/tickets/internal/JiraTicketNumberInLineParserExtension.java
Copy file name to clipboardExpand all lines: flexmark-ext-jira-ticket-links/src/test/java/com/vladsch/flexmark/ext/jira/tickets/JiraTicketNumberParserRendererSpecTest.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ public class JiraTicketNumberParserRendererSpecTest extends RendererSpecTest {
35
35
private static final Map<String, DataHolder> optionsMap = new HashMap<>();
36
36
static {
37
37
optionsMap.put("custom_root", new MutableDataSet().set(JiraTicketExtension.JIRA_URL, "https://www.your-domain.com/browse/"));
38
+
optionsMap.put("custom_proj_key_regex", new MutableDataSet().set(JiraTicketExtension.JIRA_PROJECT_KEY_REGEX, "[A-Z0-9][A-Z_0-9]+"));
38
39
}
39
40
40
41
public JiraTicketNumberParserRendererSpecTest(@NotNull SpecExample example) {
0 commit comments