-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update output.js #2581
Update output.js #2581
Conversation
This is my first request so I'm not quite sure about the conventions. Please let me know if something needs improvement. I added a const formatLowerCase at line 190 that saves the lowerCase version of the format parameter. At 192 and 194 I replaced "format" with "formatLowerCase.
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.
Hi, thank you very much for the PR.
Please can you run npm test
locally to ensure all the linting rules and unit tests still pass. If you could also add a test to cover this new feature e.g. .toFormat('JPEG')
that would be even better.
I've also left one comment inline that will need addressing.
Updated output.js to accept upper case characters. |
Brilliant, thank you very much. |
v0.27.2 now available, thanks for the PR. |
This is my first pull request (at all!). Please let me know if something needs improvement.
I added a const formatLowerCase at line 190 that saves the lowerCase version of the format parameter.
At 192 and 194 I replaced "format" with "formatLowerCase.