Skip to content
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

Merged
merged 3 commits into from
Feb 1, 2020
Merged

Conversation

nelsonamaya82
Copy link
Contributor

This resolves #10.

/node_modules
.DS_Store
Copy link
Owner

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
Copy link
Owner

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(' ');
Copy link
Owner

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.

@sagidM sagidM merged commit abcf9ee into sagidM:master Feb 1, 2020
@sagidM
Copy link
Owner

sagidM commented Feb 1, 2020

I am only interested in keeping .DS_Store in gitignore. I will handle the rest on my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Whitelist sizes to resize
2 participants