Fix a bug in the pattern class.

This commit is contained in:
Danila Fedorin 2017-07-25 13:53:19 -07:00
parent 1dcd6beb1c
commit 043d02ead2
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ public class Pattern<T> {
orChain.push(fullChain);
currentChain = null;
fullChain = new PatternChain<>();
if(++index >= source.length()) return null;
} else if(currentChar == '('){
if(currentChain != null) {
fullChain.append(currentChain);