Closed elvgarrui closed 4 years ago
As the regex is reused very frequently it makes sense to compile the regex so it can be reused, you'll find an example here: https://github.com/SUGUS-GNULinux/minolobot/blob/38badd8c920d28fe8824dc60d1f8e683b6a6f088/utilities/utilities.go#L36
lgtm!
Now minolobot knows when ps is PS and when it is part of a word (like in "eclipse").