Skip to content

Commit 82fc399

Browse files
committed
Add TODO to pattern.go
1 parent 0ac4938 commit 82fc399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/lua/pattern.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ func (p *pattern) find(s string, pos int) []int {
245245
curr.state = curr.state.out[0]
246246
case curr.state != nil && curr.state.item == patternStateSplit:
247247
capturesCopy := append(make([]int, 0, capturesCap), curr.captures...)
248+
// TODO(soon): Remove recursive call or check depth.
248249
addState(matchState{
249250
state: curr.state.out[0],
250251
captures: curr.captures,

0 commit comments

Comments
 (0)