Commit 3e911b8f authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 825781: extensions/create.pl should capitalize the name of the new extension…

Bug 825781: extensions/create.pl should capitalize the name of the new extension automatically instead of complaining r=glob a=LpSolit
parent b57387c8
......@@ -18,6 +18,7 @@ use File::Path qw(mkpath);
my $base_dir = bz_locations()->{'extensionsdir'};
my $name = $ARGV[0] or ThrowUserError('extension_create_no_name');
$name = ucfirst($name);
if ($name !~ /^[A-Z]/) {
ThrowUserError('extension_first_letter_caps', { name => $name });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment