mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #548] [MERGED] JiraLinkInlineParser.cs - Make digits in JiraKey's posible #1106
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/548
Author: @Mysteryduck001
Created: 5/3/2021
Status: ✅ Merged
Merged: 5/8/2021
Merged by: @xoofx
Base:
master← Head:master📝 Commits (6)
f56b8e6JiraLinkInlineParser.cs - Make digits in JiraKey's posiblea8737e8JiraLinks.md - add examples with JiraKeys using Digits3a47a51JiraLinks.generated.cs - updated tests for JiraLink8ce6f4dJiraLinks.md - Do not allow a digit to be the first Char of the Key8aa0948JiraLinkInlineParser.cs - prevent Jira key's to start with a digitaca0857JiraLinks.Generated.cs - add test for JiraKey's starting with a digit (not allowed)📊 Changes
3 files changed (+142 additions, -26 deletions)
View changed files
📝
src/Markdig.Tests/Specs/JiraLinks.generated.cs(+103 -23)📝
src/Markdig.Tests/Specs/JiraLinks.md(+31 -1)📝
src/Markdig/Extensions/JiraLinks/JiraLinkInlineParser.cs(+8 -2)📄 Description
A digit can also be part of the project key for example T3ST is a valid project key and T3ST-123 is thus a valid Jira issue number but it will not be recognized by this tool.
I propose to add an OR IsDigit() check like: 'while (current.IsAlphaUpper() || current.IsDigit())'
Thanks for considering to update.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.