TeslaCloud / flux-ce

Flux Community Edition (CE); A free and open-source Garry's Mod gamemode framework.
https://f.teslacloud.net
MIT License
26 stars 18 forks source link

Make string.is_command(str) return the longest prefix #49

Open AlexandrKedrov opened 4 years ago

AlexandrKedrov commented 4 years ago

string.is_command(str) returns the first matching prefix to the passed parameter. I suggest making it return the longest matching. This would allow to use prefixes which embrace the others (eg ‘//‘).