couchbaselabs / couchbaselabs/gojsonsm

Matcher finds slot start/end via odd means

Open
#38 0 comments 0 reactions 1 assignee Claimed by @brett19 View on GitHub
enhancement
Dominant language
Go
Stars
9
Forks
7
PR merge metrics
No merged PRs in 30d

Description

We currently back up the current position by the tokenData length:
```go
startPos -= len(tokenData)
```

This is probably not entirely safe, and may lead to odd bugs. We should probably update the tokenizer to support fetching the last position, or potentially pass the last position through to matchExec so it can use that.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.