coloredcobra
coloredcobra copied to clipboard
Regex to detect flags can be improved
Currently the regex is (--?\S+) this will incorrectly match words like if-available. Changing it to \s+(--?\S+) will prevent that. Although the ideal solution is to of course iterate over all flags and build up a regex from that list.