3 ms·
This would be entirely self-documenting by replacing that with a function named after what it does, then the comment isn't necessary. To boot, a unit test coul
by thwarted 2y ago
This would be entirely self-documenting by replacing that with a function named after what it does, then the comment isn't necessary.
To boot, a unit test could be written that would reveal the bug in the regular expression that makes it only work with filenames that have an asterisk before the extension. Unless you intended that (unlikely), in which case the comment is wrong/not comprehensive and misdirects the reader.