mirror of
https://github.com/DanilaFe/abacus
synced 2026-01-26 16:45:21 +00:00
Fix a bug in the pattern class.
This commit is contained in:
@@ -111,6 +111,7 @@ public class Pattern<T> {
|
|||||||
orChain.push(fullChain);
|
orChain.push(fullChain);
|
||||||
currentChain = null;
|
currentChain = null;
|
||||||
fullChain = new PatternChain<>();
|
fullChain = new PatternChain<>();
|
||||||
|
if(++index >= source.length()) return null;
|
||||||
} else if(currentChar == '('){
|
} else if(currentChar == '('){
|
||||||
if(currentChain != null) {
|
if(currentChain != null) {
|
||||||
fullChain.append(currentChain);
|
fullChain.append(currentChain);
|
||||||
|
|||||||
Reference in New Issue
Block a user