0.0.15 • Published 3 years ago

jira-issue-key-parser v0.0.15

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Jira Issue Key Parser

Issue key parser is a simple library used to parse strings for Jira issue keys from commit messages, branches, and pull requests.

This library accepts keys that follow these patterns:

  • JRA-123 (all uppercase)
  • jRA-123 (some uppercase, some lowercase - any order)
  • jra-123 (all lowercase - any order)
  • J2-123 (first part of key alphanumeric)
  • JRA-123 (keys inside square brackets)
  • (JRA-123) (keys inside square brackets)
  • #JRA-123 (keys prefixed with hash)

Patterns that are not accepted:

  • 22-123 (issue key starts with a number)
  • JRA 123 (missing hyphen from key)

Usage

After installing and importing, simply call the parse method on issueKeyParser and pass in a string e.g issueKeyParser().parse(JRA-123 my commit message).

0.0.14

3 years ago

0.0.15

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago