File tree Expand file tree Collapse file tree
Confuser.Core/Project/Patterns Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System ;
2+ using System . Text . RegularExpressions ;
23using dnlib . DotNet ;
34
45namespace Confuser . Core . Project . Patterns {
@@ -22,7 +23,7 @@ public override int ArgumentCount {
2223 public override object Evaluate ( IDnlibDef definition ) {
2324 if ( ! ( definition is TypeDef ) && ! ( definition is IMemberDef ) )
2425 return false ;
25- object ns = Arguments [ 0 ] . Evaluate ( definition ) ;
26+ var ns = Arguments [ 0 ] . Evaluate ( definition ) . ToString ( ) ;
2627
2728 var type = definition as TypeDef ;
2829 if ( type == null )
@@ -31,7 +32,7 @@ public override object Evaluate(IDnlibDef definition) {
3132 while ( type . IsNested )
3233 type = type . DeclaringType ;
3334
34- return type != null && type . Namespace == ns . ToString ( ) ;
35+ return type != null && Regex . IsMatch ( type . Namespace , ns ) ;
3536 }
3637 }
3738}
You can’t perform that action at this time.
0 commit comments