CREATOR need only be a "word" in wild repo patterns

this was a v2 compat breakage, caught by Dominik Schäfer
(schaedpq at gmail)
redis
Sitaram Chamarty 2012-12-14 07:29:20 +05:30
parent 2048484578
commit 4f4658274d
1 changed files with 1 additions and 2 deletions

View File

@ -418,8 +418,7 @@ sub generic_name {
$creator = creator($base);
$base2 = $base;
$base2 =~ s(/$creator/)(/CREATOR/) if $creator;
$base2 =~ s(^$creator/)(CREATOR/) if $creator;
$base2 =~ s(\b$creator\b)(CREATOR) if $creator;
$base2 = '' if $base2 eq $base; # if there was no change
return $base2;