mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
handles Turkish correctly
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17598 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
1f8dc570aa
commit
37112c7292
1 file changed
+3
-1
@@ -36,6 +36,7 @@ import java.io.PrintStream;
|
||||
import java.io.InputStream;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Base class for Hudson CLI.
|
||||
@@ -118,7 +119,8 @@ public abstract class CLICommand implements ExtensionPoint, Cloneable {
|
||||
name = name.substring(0,name.length()-7); // trim off the command
|
||||
|
||||
// convert "FooBarZot" into "foo-bar-zot"
|
||||
return name.replaceAll("([a-z0-9])([A-Z])","$1-$2").toLowerCase();
|
||||
// Locale is fixed so that "CreateInstance" always become "create-instance" no matter where this is run.
|
||||
return name.replaceAll("([a-z0-9])([A-Z])","$1-$2").toLowerCase(Locale.ENGLISH);
|
||||
}
|
||||
|
||||
public int main(List<String> args, InputStream stdin, PrintStream stdout, PrintStream stderr) {
|
||||
|
||||
Reference in new issue
Block a user