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

Fix splitting of p4DiffOutput on windows #44

Conversation

richardthe3rd
Copy link
Contributor

When the p4DiffOutput has windows line endings ('\r\n') previously each change had a trailing '\r' which messed up matching in showDiffMarks. Based upon http://jsperf.com/regex-split-vs-match I've swapped to using match and regexp to do the split.

When the p4DiffOutput uses windows line endings '\r\n' then previously each change had a trailing '\r' which messed up matching in showDiffMarks. Based upon http://jsperf.com/regex-split-vs-match I've swapped to using match and regexp to do the split.
mattsawyer77 added a commit that referenced this pull request Dec 7, 2015
…Diff

Fix splitting of p4DiffOutput on windows
@mattsawyer77 mattsawyer77 merged commit f5912fa into mattsawyer77:master Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants