We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e65210 commit 86980e3Copy full SHA for 86980e3
Editor/Aspect/Aspect.cs
@@ -87,9 +87,11 @@ static void ProcessFile(string path){
87
* [ this , [+/-]methodName, Log ]
88
*/
89
static bool IsInjected(MethodDefinition m){
90
+ if(m.Body.Instructions.Count < 2) return false;
91
var i = m.Body.Instructions[1];
92
return i.OpCode == OpCodes.Ldstr
93
&& i.Operand is string s
94
+ && s.Length > 1
95
&& s.Substring(1).StartsWith(m.Name);
96
97
}
0 commit comments