Match example in comment with example in PR

This commit is contained in:
WasserEsser 2021-03-12 23:29:50 +01:00 committed by Szymon Uglis
parent a12ea9f828
commit b23113d0cd
No known key found for this signature in database
GPG key ID: 112376C5BEE91FE2

View file

@ -102,8 +102,8 @@ class Commander with ICommandRegistrable {
// Builds a RegEx that matches the full command including their parents and all possible
// aliases of the final command entity and their parents.
// Example: (?<finalCommand>(quote|quotes) (remove|rm))
// This will match the command `quote remove`, `quotes remove`, `quote rm` and `quotes rm`
// Example: (?<finalCommand>(quote|q) (remove|rm))
// This will match the command `quote remove`, `q remove`, `quote rm` and `q rm`
final match = RegExp("(?<finalCommand>${matchingCommand.getFullCommandMatch()})").firstMatch(
event.message.content,