]> khamidou — GitHub mirrors - arcanist.git/commit
Fix some regexp issues for parsing SVN diffs with \r\n newlines
authorepriestley <git@epriestley.com>
Mon, 22 Oct 2012 18:15:36 +0000 (11:15 -0700)
committerepriestley <git@epriestley.com>
Mon, 22 Oct 2012 18:15:36 +0000 (11:15 -0700)
commit10653d7ff37834debfa62b6f4b372c7914328c01
tree5d47e8cfb6418f25f4e4318168a70f662c768e7e
parent6114d7cf9c86996a0de02fda99631f5ea3aba30b
Fix some regexp issues for parsing SVN diffs with \r\n newlines

Summary: We need to tweak a few patterns to accommodate the possibility that lines end in "\r\n".

Test Plan: Added failing unit test and made it pass.

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran, mbishopim3
Maniphest Tasks: T1944

Differential Revision: https://secure.phabricator.com/D3772
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistDiffParserTestCase.php
src/parser/__tests__/diff/more-newlines.svndiff [new file with mode: 0644]