Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Fix should not matching NS pattern after matching NS in module patter…
Browse files Browse the repository at this point in the history
…n successfully
  • Loading branch information
yck1509 committed Dec 19, 2014
1 parent a38462f commit a8d57bd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Confuser.CLI/ObfAttrMarker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,14 @@ void MarkModule(ModuleDefMD module, bool isMain) {
}
targetModuleAttrs.AddListEntry(ns, x);
}
match = NSPattern.Match(attr.FeatureName);
if (match.Success) {
var ns = TranslateNamespaceRegex(match.Groups[1].Value);
var x = attr;
x.FeatureName = "";
namespaceAttrs.AddListEntry(ns, x);
else {
match = NSPattern.Match(attr.FeatureName);
if (match.Success) {
var ns = TranslateNamespaceRegex(match.Groups[1].Value);
var x = attr;
x.FeatureName = "";
namespaceAttrs.AddListEntry(ns, x);
}
}
}
}
Expand Down

0 comments on commit a8d57bd

Please sign in to comment.