SUGUS-GNULinux / minolobot

Bot de Telegram oficial del miembro de Sugus Minolo.
GNU General Public License v3.0
6 stars 2 forks source link

Fix 'ps' detection (Fixed: SUGUS-GNULinux#27) #30

Closed elvgarrui closed 4 years ago

elvgarrui commented 4 years ago

Now minolobot knows when ps is PS and when it is part of a word (like in "eclipse").

lupoDharkael commented 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

lupoDharkael commented 4 years ago

lgtm!