Skip to content

Commit 39be0a4

Browse files
authored
/autolink command to edit configuration (#71)
* MM-15965: cleaned up word boundary checks - Using `\b` instead of a homebrewed word separator list - Since `\b` does not consume, removed the second pass ReplaceAll - Made tests more realistic by running MessageWillBePosted, to cover markdown inspection - Added word boundary tests - Cleanup * added config commands * fixed paths * Legacy word boundaries and tests * Added EnableAdminCommand config setting Also - fixed the help message - fixed incorrect parsing of "false" - moved command [un-]registration OnConfigurationChanged * Added /autolink test, fixed deadlock, * /autolink help formatting, style * PR feedback: renamed multipass to canReplaceAll, commented
1 parent 9930bf3 commit 39be0a4

File tree

8 files changed

+792
-209
lines changed

8 files changed

+792
-209
lines changed

plugin.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
}
1212
},
1313
"settings_schema": {
14-
"header": "Configure this plugin directly in the config.json file. Learn more [in our documentation](https://github.com/mattermost/mattermost-plugin-autolink/blob/master/README.md).\n\nTo report an issue, make a suggestion or a contribution, [check the plugin repository](https://github.com/mattermost/mattermost-plugin-autolink)."
14+
"header": "Configure this plugin directly in the config.json file. Learn more [in our documentation](https://github.com/mattermost/mattermost-plugin-autolink/blob/master/README.md).\n\nTo report an issue, make a suggestion or a contribution, [check the plugin repository](https://github.com/mattermost/mattermost-plugin-autolink).",
15+
"settings": [
16+
{
17+
"key": "EnableAdminCommand",
18+
"display_name": "Enable administration with /autolink command",
19+
"type": "bool",
20+
"default": false
21+
}
22+
]
1523
}
1624
}

server/autolinker.go

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)