Skip to content

Commit c13681d

Browse files
committed
Implement simplest linear check (which will work until joni opts some stack operations to be linear via caching)
1 parent d4696c4 commit c13681d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/org/joni/Regex.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,4 +507,8 @@ public void setUserObject(Object object) {
507507
public Object getUserObject() {
508508
return userObject;
509509
}
510+
511+
public boolean isLinear() {
512+
return !requireStack;
513+
}
510514
}

0 commit comments

Comments
 (0)