acme: regex not mathing as much as possible
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
The report names no source file or test. Reproduce the Edit command against the supplied two-line text, then trace the acme implementation of the x address and compare its behavior with go sam and plan9port acme. Done means the command produces “Tabc Txyz” rather than per-character substitutions.
Written by the indexing model from the issue text.
Description
Considering the following text:
abc xyz
The following Edit command:
Edit ,x/[a-z]+/ s/.*/T&/g
Should result in
Tabc Txyz
But it seems like x is capturing single chars only, instead the full 3 char group, so the command results in :
TaTbTc TxTyTz
I tried to find the problem to fix it myself but could not find where the bug is. It seems to work fine in go sam and plan9port acme.
- Dominant language
- Go
- Stars
- 377
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from 9fans/go
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Watch: spaces in command are not preservedPossibly taken @cptaffe claimed this 445 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
samterm doesn't compile on AIXPossibly taken @bhuntsman claimed this 636 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Containerpak/cpak#93 ·
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug laptop
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
router-for-me/CLIProxyAPI#7607 ·
Maintainers usually reply within 1 day
-
enhancement ui/ux
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
myNameArnav/lex#52 ·
Maintainers usually reply within 1 day