This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
The router should match a command only if the verb is followed by a space or EOF #43
Labels
good first issue
Good for newcomers
Right now, the router's route method just uses strings.HasPrefix to determine if the message contains a command.
This means it's possible to concatenate a valid command with garbage:
It's not exactly a bug, since it won't technically hurt anything, but "helpasdf" is also technically not "help".
Fix this.
The text was updated successfully, but these errors were encountered: