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