mirror of
https://github.com/DanilaFe/abacus
synced 2025-02-05 11:39:04 -08:00
Fix a bug in the pattern class.
This commit is contained in:
parent
1dcd6beb1c
commit
043d02ead2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user