micro-editor / micro-editor/micro
Cannot match the standalone beginning of line regex
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Description of the problem or steps to reproduce
Micro cannot find/match/replace the standalone beginning of line regex ^. E.g.
> replace "^" "^"
always returns
Nothing matched ^
This seems to be a regression, and quite disruptive, as a pattern recall, e.g.
> replace "\(^.*$\)" "\1",
(or more precisely, \1) also fails
Specifications
Commit hash: 1856891
OS: Xubuntu 18.04.2 LTS
Terminal: xfce4-terminal``
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the replace "^" "^" command and the backreference example, then trace the regex matching path used by Micro's replace command. Done means standalone beginning-of-line matching works and the documented \1 pattern recall succeeds without breaking ordinary replacements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100