Open dschaper opened 4 years ago
Autolink seems to be converting < and >s to unicode escape chars. This ends up causing the /autolink list to show erroneous information.
<
>
/autolink list
Autolink v1.1.2 Mattermost Version: 5.20.1 Database Schema Version: 5.20.0 Database: postgres
autolink set CoreChannel Pattern (?i)(#)(?P<Gh_id>\d+)
/autolink list:
/autolink list CoreChannel
config.json
"mattermost-autolink": { "enableadmincommand": true, "links": [ { "DisableNonWordPrefix": false, "DisableNonWordSuffix": false, "Disabled": false, "Name": "CoreChannel", "Pattern": "(?i)(#)(?P\u003cGh_id\u003e\\d+)", "Scope": [ "pi-hole/pihole-repo" ], "Template": "[Core #${GH_id}](https://github.com/pi-hole/pi-hole/issues/${GH_id})", "WordMatch": false }, { "DisableNonWordPrefix": false, "DisableNonWordSuffix": false, "Disabled": false, "Name": "GitHubCore", "Pattern": "(?i)(core)(-| #| )(?P\u003cGH_id\u003e\\d+)", "Scope": null, "Template": "[Core #${GH_id}](https://github.com/pi-hole/pi-hole/issues/${GH_id})", "WordMatch": false }, { "DisableNonWordPrefix": false, "DisableNonWordSuffix": false, "Disabled": false, "Name": "GitHubFTL", "Pattern": "(?i)(ftl)((-| #))(?P\u003cGH_id\u003e\\d+)", "Scope": null, "Template": "[FTL #${GH_id}](https://github.com/pi-hole/ftl/issues/${GH_id})", "WordMatch": false }, { "DisableNonWordPrefix": false, "DisableNonWordSuffix": false, "Disabled": false, "Name": "GitHubPRorIssue", "Pattern": "https://github\\.com/pi-hole/(?P\u003crepo\u003e.+)/(?P\u003ctype\u003e.+)/(?P\u003cid\u003e\\d+)", "Scope": null, "Template": "[${type}: pi-hole/${repo} #${id}](https://github.com/pi-hole/${repo}/${type}/${id})", "WordMatch": false } ] } },
@dschaper Can you confirm that this also happens with v1.2.1?
Yes, this still is occurring.
Autolink seems to be converting
<
and>
s to unicode escape chars. This ends up causing the/autolink list
to show erroneous information.Autolink v1.1.2 Mattermost Version: 5.20.1 Database Schema Version: 5.20.0 Database: postgres
autolink set CoreChannel Pattern (?i)(#)(?P<Gh_id>\d+)
/autolink list
:/autolink list CoreChannel
config.json