edit: previous and next with $ and ^ are broken.
- Dominant language
- Go
- Stars
- 60
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
`.-/^/` should match the start of the current line. It does not. Instead, it matches `.`. `^` incorrectly matches the start of the input. Reverse matches scan forward for the last match, and return the empty string just before `.` if all previous matches are empty. When scanning forward, each match will be the empty string at the start of the input, ending with the empty string before `.`.
`.-/$/` should match the end of the previous line. It does not. Instead, it matches `.`. `$` incorrectly matches the end of the input. Reverse matches scan forward for the last match. The last match of `$` is the end of input.
`.+/^/` should match the start of the next line. It does not. Instead, it matches `.`. `^` incorrectly matches the start of the input.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named in the issue. Start by locating the edit implementation that handles forward and reverse matches for ^ and $, then add regression coverage for the described line-boundary cases. Done means the listed expressions match the current, previous, or next line boundaries as specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100