kokke / kokke/tiny-regex-c

matchlen may be wrong

Open
#53 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.5k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

`int match_len;`
`char* s = "aa";`
`char* p = ".*a.*a";`
`int match_idx = re_match(p, s, &match_len);`

expected: match_len == 2
result: match_len == 3

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the supplied C example through re_match, then trace how that entry point calculates match_len for `.*a.*a`. Done means the example reports match_len == 2 rather than 3, with the relevant existing behavior still covered by tests or a focused regression case.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.