From ef7143d8436704aa8e432f67d7d4a89643c7813c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Thu, 1 Apr 2021 19:22:59 +0200 Subject: [PATCH] Fixed: Rename invalid identifiers renames identifiers with a dollar sign --- CHANGELOG.md | 1 + .../jpexs/decompiler/flash/abc/avm2/AVM2Deobfuscation.java | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c9d06703..b3888305e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file. - Flash viewer - slow on larger zooms (now only diplayed rect is rendered) - Flash viewer - scaling grid - ignore nonshapes when scaling - #1672 Raw editor - digits grouping causing incorrect cursor movement +- Rename invalid identifiers renames identifiers with a dollar sign ## [14.3.1] - 2021-03-25 ### Fixed diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/AVM2Deobfuscation.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/AVM2Deobfuscation.java index 140ea189f..ad10ae55b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/AVM2Deobfuscation.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/AVM2Deobfuscation.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.abc.avm2; import com.jpexs.decompiler.flash.IdentifiersDeobfuscation; @@ -35,11 +36,11 @@ public class AVM2Deobfuscation { private static final int DEFAULT_FOO_SIZE = 10; - public static final String VALID_FIRST_CHARACTERS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"; + public static final String VALID_FIRST_CHARACTERS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$"; public static final String VALID_NEXT_CHARACTERS = VALID_FIRST_CHARACTERS + "0123456789"; - public static final String VALID_NS_CHARACTERS = ".:$"; + public static final String VALID_NS_CHARACTERS = ".:"; private final SWF swf;