diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2013-01-02 13:16:49 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-01-02 13:16:49 +0100 |
commit | a4ae025dbd628fb0c816a0e7c9b1b37c2feaf303 (patch) | |
tree | 1f75216aab1f2c4283e82b57316ee0fe9de0c0e5 | |
parent | 67490ab7b2e7ce850af3c27d82b4ba014c1b5e90 (diff) | |
download | bugzilla-a4ae025dbd628fb0c816a0e7c9b1b37c2feaf303.tar.gz bugzilla-a4ae025dbd628fb0c816a0e7c9b1b37c2feaf303.tar.xz |
Bug 825781: extensions/create.pl should capitalize the name of the new extension automatically instead of complaining
r=glob a=LpSolit
-rwxr-xr-x | extensions/create.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/create.pl b/extensions/create.pl index c48f60df8..e5a436845 100755 --- a/extensions/create.pl +++ b/extensions/create.pl @@ -20,6 +20,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 }); } |