kokke / kokke/tiny-regex-c

fix pattern '[1-5-]+' against '123-'

Open
#79 0 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

A final - in a character class should not be stopped by the interim range char -.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the pattern '[1-5-]+' against '123-' and inspect the character-class parsing code in the C regex implementation. The fix is done when the final '-' is accepted as a literal after the interim range character, while existing range handling remains correct.

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.