Fixed: AS1/2 Obfuscated registers names not resolving because of trimming

This commit is contained in:
Jindra Petřík
2025-07-01 22:00:04 +02:00
parent cab9e853b8
commit a7e00e52bf
2 changed files with 2 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
- [#2474] Gotos incorrectly decompiled
- AS1/2/3 highligter - brackets parsing error causing memory leak / crash
- Comments color highlighting
- AS1/2 Obfuscated registers names not resolving because of trimming
### Changed
- Icon of "Deobfuscation options" menu from pile of pills to medkit

View File

@@ -117,7 +117,7 @@ public class RegisterNumber implements Serializable {
* @return Translated name
*/
public String translate() {
if (name == null || name.trim().isEmpty()) {
if (name == null || name.isEmpty()) {
return String.format(Configuration.registerNameFormat.get(), number);
}
return name;