wesaynih / infrastructure

© 2016 The Knights Who Say NIH — Do NOT fork this repository without permission.
http://frameless.io/
Other
0 stars 1 forks source link

File name sanitization as pre-commit hook #16

Closed Robbert closed 8 years ago

Robbert commented 8 years ago

Stuff like:

I've worked on a nih-filename module that performs similar checks, maybe use that one.

Robbert commented 8 years ago

In the meantime we can use the npm module sanitize-filename and check wether sanitize(filename) !== filename.

Robbert commented 8 years ago

Added a Gulp task that uses the sanitize function, and added check for the filename length.