claudetech / node-static-i18n

HTML static pages i18n tool
https://www.npmjs.com/package/static-i18n
MIT License
104 stars 21 forks source link

A single --exclude 'filename_to_exclude' flag results in every character being checked instead of the whole filename #42

Closed henriheimann closed 3 years ago

henriheimann commented 4 years ago

When calling static-i18n with a single --exclude 'filename_to_exclude' flag, every file whose name includes a single character of 'filename_to_exclude' is excluded instead of files whose name starts with 'filename_to_exclude'.

danhper commented 3 years ago

Hi and sorry for the delay. exclude was indeed not cast properly to an array. This should now be fixed, thanks for reporting!