Skip to content

Commit 681b494

Browse files
authored
Fix bullet formatting (#152)
cc @justinegeffen
1 parent 19d8d71 commit 681b494

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,21 @@ Below is an example of regexp patterns used for autolinking at https://community
109109
## Examples
110110

111111
1. Autolinking `Ticket ####:text with alphanumberic characters and spaces` to a ticket link. Use:
112-
- 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>.*)`
113-
- Template: `[Ticket ${ticket_id}: ${ticket_info}](https://github.com/mattermost/mattermost-server/issues/${ticket_id})`
114-
- Scope: `["teams/committers"]` (optional)
112+
- 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>.*)`
113+
- Template: `[Ticket ${ticket_id}: ${ticket_info}](https://github.com/mattermost/mattermost-server/issues/${ticket_id})`
114+
- Scope: `["teams/committers"]` (optional)
115115

116116
2. Autolinking a link to a GitHub PR to a format "pr-repo-id". Use:
117-
- Pattern: `https://github\\.com/mattermost/(?P<repo>.+)/pull/(?P<id>\\d+)`
118-
- Template: `[pr-${repo}-${id}](https://github.com/mattermost/${repo}/pull/${id})`
117+
- Pattern: `https://github\\.com/mattermost/(?P<repo>.+)/pull/(?P<id>\\d+)`
118+
- Template: `[pr-${repo}-${id}](https://github.com/mattermost/${repo}/pull/${id})`
119119

120120
3. Using autolinking to create group mentions. Use (note that clicking the resulting at-mention redirects to a broken page):
121-
- Pattern: `@customgroup*`
122-
- Template: `[@customgroup]( \\* @user1 @user2 @user3 \\* )`
121+
- Pattern: `@customgroup*`
122+
- Template: `[@customgroup]( \\* @user1 @user2 @user3 \\* )`
123123

124124
4. For servers with multiple domains (like community and community-daily on the [public Mattermost Server](https://community.mattermost)), a substitution of absolute conversation links to relative links is recommended to prevent issues in the mobile app. Add one pattern for each domain used:
125-
- Pattern: `https://community\\.mattermost\\.com/(?P\u003cteamname\u003e(?a-zA-Z0-9]+)/(?P\u003cid\u003e[a-zA-Z0-9]+)`
126-
- Template: `[<jump to convo>](/${teamname}/pl/${id})/${id})`
125+
- Pattern: `https://community\\.mattermost\\.com/(?P\u003cteamname\u003e(?a-zA-Z0-9]+)/(?P\u003cid\u003e[a-zA-Z0-9]+)`
126+
- Template: `[<jump to convo>](/${teamname}/pl/${id})/${id})`
127127

128128

129129
**You can check your pattern with those Regex Testers:**

0 commit comments

Comments
 (0)