From 329bd4075b669764fcf2c844a948246d188e1669 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Tue, 2 Dec 2008 15:50:30 +0000 Subject: [PATCH] Apply regex fixes from idl0r svn path=/; revision=525 --- trunk/src/echangelog/echangelog | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 3b64d21..f874bae 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -27,12 +27,12 @@ my %vcs = ( cvs => { diff => "cvs -f diff -U0", status => "cvs -fn up", add => "cvs -f add", skip => 6, - regex => qr/^Index: ()(([^\/]*?)\.ebuild)\s*$/ }, + regex => qr/^Index: (([^\/]*?)\.ebuild)\s*$/ }, svn => { diff => "svn diff -N", status => "svn status", add => "svn add", skip => 6, - regex => qr/^Index: ()(([^\/]*?)\.ebuild)\s*$/ }, + regex => qr/^Index: (([^\/]*?)\.ebuild)\s*$/ }, git => { diff => "git diff", status => "git diff-index HEAD --name-status", add => "git add", @@ -115,7 +115,7 @@ while () { } $actions{$1} = '+'; next; - } elsif (/^([ARMD])\s+(\S+)/) { + } elsif (/^([ARMD])\s+\+?\s*(\S+)/) { my ($status, $filename) = ($1,$2); if($vcs eq "git") { open P, "git rev-parse --sq --show-prefix |"; -- 2.26.2