Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

fix: Normalize command only and not command args(windows) #134

Merged
merged 2 commits into from Aug 3, 2017

Conversation

sudo-suhas
Copy link
Contributor

@sudo-suhas sudo-suhas commented Aug 3, 2017

Command arguments can have URLs which should not be normalized. This adds optional parameter to function commandConvert(default false) and normalizes only the command, and not the command arguments.

This also adds tests for cmd normalization on windows

  • index.test.js
    • should normalize command on windows
    • should not normalize command arguments on windows
  • command.test.js - normalizes command on windows

Issue reported by @weizhenye - #130 (comment)

Edit: Turns out there was an issue reported for this as well.
Closes #133

Command arguments can have URLs which should not be normalized. Add optional parameter
`commandConvert`(default `false`) and normalize only the command, not the command arguments
index.test.js
  - should normalize command on windows
  - should not normalize command arguments on windows
command.test.js - normalizes command on windows
@codecov
Copy link

codecov bot commented Aug 3, 2017

Codecov Report

Merging #134 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #134   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          50     51    +1     
=====================================
+ Hits           50     51    +1
Impacted Files Coverage Δ
src/index.js 100% <ø> (ø) ⬆️
src/command.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 601632d...67917c3. Read the comment docs.

Copy link
Owner

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thank you!

@kentcdodds kentcdodds merged commit 277cf07 into kentcdodds:master Aug 3, 2017
@sudo-suhas sudo-suhas deleted the fix/no-cmd-arg-normalize branch August 3, 2017 13:59
@sudo-suhas
Copy link
Contributor Author

Ha ha.. my fault to begin with 😅

@ErBlack
Copy link

ErBlack commented Aug 3, 2017

Awesome! 👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants