TeslaCloud/flux-ce

Make string.is_command(str) return the longest prefix

AlexandrKedrov opened this issue · 0 comments

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