fix: locale-independent code upper-casing; refresh note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
39139ed7b1
commit
cbe48c2db9
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -97,7 +97,7 @@ public class CompanyService {
|
||||
}
|
||||
|
||||
private static String validCode(String code) {
|
||||
String v = code == null ? "" : code.trim().toUpperCase();
|
||||
String v = code == null ? "" : code.trim().toUpperCase(java.util.Locale.ROOT);
|
||||
if (!CODE.matcher(v).matches()) throw new IllegalArgumentException("Code must be 2 to 20 characters: A-Z, 0-9 or -");
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user