IJPL-188609 "Generate icon classes" doesn't resolve ambig names of numbers

GitOrigin-RevId: 100f44a2ceec4f57cdfbf9742093835047f2333a
This commit is contained in:
Alexander Lobas
2025-05-20 15:58:27 +00:00
committed by intellij-monorepo-bot
parent 0bd633e523
commit a404ba9362
@@ -24,11 +24,10 @@ import java.nio.file.NoSuchFileException
import java.nio.file.Path
import java.nio.file.Paths
import java.time.LocalDate
import java.util.*
import java.util.Locale
import java.util.concurrent.CopyOnWriteArrayList
import java.util.concurrent.atomic.AtomicInteger
import javax.xml.stream.XMLStreamException
import kotlin.collections.any
import kotlin.io.path.exists
@JvmRecord
@@ -665,6 +664,9 @@ internal open class IconsClassGenerator(
}
else {
sb.append('_')
if (index == 0 && Character.isDigit(c)) {
sb.append(c)
}
}
}