Closed Barbaribouch closed 1 year ago
Hello, I was not aware that projects key could contain an underscore. The bug is fixed starting from version 1.50.0
Please let me know if it works fine
Thank you, it almost works, but the two following lines in src/rendering/issueFenceRenderer.ts
:
const ISSUE_REGEX = new RegExp(`^\s*(${JIRA_KEY_REGEX})\s*$`, 'i')
const ISSUE_LINK_REGEX = new RegExp(`\/(${JIRA_KEY_REGEX})\s*$`, 'i')
become
var ISSUE_REGEX = new RegExp(`^s*(${JIRA_KEY_REGEX})s*$`, "i");
var ISSUE_LINK_REGEX = new RegExp(`/(${JIRA_KEY_REGEX})s*$`, "i");
in main.js
.
As a result, any project starting with a 's' is not recognized correctly.
Hahaha, I really need to work on my unit tests
Describe the bug Both functionalities "Jira issue" and "Inline issue" don't work as soon as there is an underscore in the project name
To Reproduce Try displaying a ticket in a project containing an underscore :
or
Expected behavior Displaying the ticket correctly
Suggested solution Replacing all (I found 5)
[A-Z0-9]+-[0-9]+
occurences by[_A-Z0-9]+-[0-9]+
(or maybe a more refined solution to prevent project names from starting or ending with an underscore)Plugin version and platform