Skip to content

Commit

Permalink
Update example 1 based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonblais committed Apr 12, 2019
1 parent b08ee50 commit 20dcb22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ Below is an example of regexp patterns used for autolinking, modified in the `co
## Examples

1. Autolinking `Ticket ####:text with alphanumberic characters and spaces` to a ticket link. Use:
- Pattern: `(?i)(ticket )(?P<ticket_id>)( : )(?P<ticket_info>.*)`
- Template: `(ticket ${ticket_id}:${ticket_info})`
- Pattern: `(?i)(ticket )(?P<ticket_id>.+)(:)(?P<ticket_info>.*)`, or if the ticket_id is a number, then `(?i)(ticket )(?P<ticket_id>\d+)(:)(?P<ticket_info>.*)`
- Template: `[Ticket ${ticket_id}: ${ticket_info}](https://github.com/mattermost/mattermost-server/issues/${ticket_id})`

2. Autolinking a link to a GitHub PR to a link with format "pr-repo-id". Use:
- Pattern: `https://github\\.com/mattermost/(?P<repo>.+)/pull/(?P<id>\\d+)`
Expand Down

0 comments on commit 20dcb22

Please sign in to comment.