Handle reserved Windows filenames
sindresorhus opened this issue · comments
By using https://github.com/sindresorhus/filename-reserved-regex#filenamereservedregexwindowsnames and if it matches, add the replacement character to the end of the filename.
@silverwind What do you think?
Sounds good.
As it stands, this issue relies on filenameReservedRegex.windowsNames()
. Currently, such regex is only available on version 2.0.0 of the filename-reserved-regex. Executing npm install filenamify --save
will pull by default version 1.0.0 of filename-reserved-regex. Adding this feature to filenamify will force the update of the dependency mentioned above.
Whenever I get a little free time I will try to implement such feature, as well as a couple of unit tests.