-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sizes whitelisting option #11
Conversation
/node_modules | ||
.DS_Store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather place OS-specific stuff into global ~/.gitignore
.
In the end, there is no inner folder, can't see any discomforts of not having it ignored.
/node_modules | ||
.DS_Store | ||
*.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I make changes, I usually execute git commit -a
or -am "..."
, adding all the edited files but not new ones.
For me, it is sufficient. Though yet I may understand the confusion of seeing zip files on git status
afterward. So we can keep it.
const options = parts[2].split('_'); | ||
const filename = parts[3]; | ||
|
||
|
||
const sizes = options[0].split("x"); | ||
const action = options.length > 1 ? options[1] : null; | ||
|
||
// Whitelist validation. | ||
if (WHITELIST) { | ||
const whitelistArr = WHITELIST.split(' '); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to avoid splitting on each request.
I am only interested in keeping |
This resolves #10.