mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fix ArrayIndexOutOfBoundsException in transformName().
This commit is contained in:
@@ -151,7 +151,7 @@ public class CardStorageReader {
|
||||
continue;
|
||||
}
|
||||
if (c < 'a' || c > 'z') {
|
||||
if (chars[charIndex - 1] == '_') {
|
||||
if (charIndex > 0 && chars[charIndex - 1] == '_') {
|
||||
continue;
|
||||
}
|
||||
c = '_';
|
||||
|
||||
Reference in New Issue
Block a user