Open AlexandrKedrov opened 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 ‘//‘).
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 ‘//‘).