Skip to content

Commit ef61ef1

Browse files
committed
Add underscore back to decodable names
1 parent 36132ed commit ef61ef1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Confuser.Renamer/NameService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ string ObfuscateNameInternal(byte[] hash, RenameMode mode) {
165165
return Utils.EncodeString(hash, asciiCharset);
166166
case RenameMode.Decodable:
167167
IncrementNameId();
168-
return Utils.EncodeString(hash, alphaNumCharset);
168+
return "_" + Utils.EncodeString(hash, alphaNumCharset);
169169
case RenameMode.Sequential:
170170
IncrementNameId();
171-
return Utils.EncodeString(nameId, alphaNumCharset);
171+
return "_" + Utils.EncodeString(nameId, alphaNumCharset);
172172
default:
173173

174174
throw new NotSupportedException("Rename mode '" + mode + "' is not supported.");

ConfuserEx/StackTraceDecoder.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void ChooseMapPath(object sender, RoutedEventArgs e) {
5656
}
5757
}
5858

59-
readonly Regex mapSymbolMatcher = new Regex("[a-zA-Z0-9]+");
59+
readonly Regex mapSymbolMatcher = new Regex("_[a-zA-Z0-9]+");
6060
readonly Regex passSymbolMatcher = new Regex("[a-zA-Z0-9_$]{23,}");
6161
ReversibleRenamer renamer;
6262

0 commit comments

Comments
 (0)