From ca1b399b162c140ffba751e50351106e01f30559 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 14 Jun 2018 17:06:06 -0700 Subject: [PATCH] Fixing samples --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 3d1a031e..e4132797 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# mattermost-plugin-autolink +# Autolink Plugin This plugin allows you to create various regular expression patterns that will be reformatted into a markdown link before the post is saved into the database. @@ -33,35 +33,35 @@ Autolinks have 2 parts. A `Pattern` which is a regular expression search patter "Template": "[ESR](https://docs.mattermost.com/process/training.html#esr)" }, { - "Pattern": "((?P\u003clevel\u003e0|1|2|3|4|5)/5)", + "Pattern": "((?P0|1|2|3|4|5)/5)", "Template": "[${level}/5](https://docs.mattermost.com/process/training.html#id8)" }, { - "Pattern": "(MM)(-)(?P\u003cjira_id\u003e\\d+)", + "Pattern": "(MM)(-)(?P\\d+)", "Template": "[MM-${jira_id}](https://mattermost.atlassian.net/browse/MM-${jira_id})" }, { - "Pattern": "https://pre-release\\.mattermost\\.com/core/pl/(?P\u003cid\u003e[a-zA-Z0-9]+)", - "Template": "[\u003cjump to convo\u003e](https://pre-release.mattermost.com/core/pl/${id})" + "Pattern": "https://pre-release\\.mattermost\\.com/core/pl/(?P[a-zA-Z0-9]+)", + "Template": "[](https://pre-release.mattermost.com/core/pl/${id})" }, { - "Pattern": "(https://mattermost\\.atlassian\\.net/browse/)(MM)(-)(?P\u003cjira_id\u003e\\d+)", + "Pattern": "(https://mattermost\\.atlassian\\.net/browse/)(MM)(-)(?P\\d+)", "Template": "[MM-${jira_id}](https://mattermost.atlassian.net/browse/MM-${jira_id})" }, { - "Pattern": "https://github\\.com/mattermost/(?P\u003crepo\u003e.+)/pull/(?P\u003cid\u003e\\d+)", + "Pattern": "https://github\\.com/mattermost/(?P.+)/pull/(?P\\d+)", "Template": "[pr-${repo}-${id}](https://github.com/mattermost/${repo}/pull/${id})" }, { - "Pattern": "https://github\\.com/mattermost/(?P\u003crepo\u003e.+)/issues/(?P\u003cid\u003e\\d+)", + "Pattern": "https://github\\.com/mattermost/(?P.+)/issues/(?P\\d+)", "Template": "[issue-${repo}-${id}](https://github.com/mattermost/${repo}/issues/${id})" }, { - "Pattern": "(PLT)(-)(?P\u003cjira_id\u003e\\d+)", + "Pattern": "(PLT)(-)(?P\\d+)", "Template": "[PLT-${jira_id}](https://mattermost.atlassian.net/browse/PLT-${jira_id})" }, { - "Pattern": "(https://mattermost\\.atlassian\\.net/browse/)(PLT)(-)(?P\u003cjira_id\u003e\\d+)", + "Pattern": "(https://mattermost\\.atlassian\\.net/browse/)(PLT)(-)(?P\\d+)", "Template": "[PLT-${jira_id}](https://mattermost.atlassian.net/browse/PLT-${jira_id})" } ]