mirror of
https://github.com/zaaarf/lillero.git
synced 2024-11-21 23:14:51 +01:00
fix: corrected mistake in implementation of reverse lookup
This commit is contained in:
parent
764ff58eaa
commit
53c8d23cd2
1 changed files with 4 additions and 2 deletions
|
@ -94,8 +94,10 @@ public class PatternMatcher {
|
|||
break;
|
||||
} else break;
|
||||
}
|
||||
if(first != null && last != null)
|
||||
return new InsnSequence(first, last);
|
||||
if(first != null && last != null) {
|
||||
if(reverse) return new InsnSequence(last, first);
|
||||
else return new InsnSequence(first, last);
|
||||
}
|
||||
}
|
||||
throw new PatternNotFoundException("Failed to find pattern!");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue