查找替换中正则表达式后向引用出错
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13k
- Forks
- 1.3k
- Avg merge
- 14h 3m
- Merged PRs (30d)
- 3
Description
OS Version (操作系统): Windows, Linux, macOS
VNote Version (Help - About VNote - Version: )(VNote版本): 2.7.2
Symptoms (表现):
How to Repro (如何复现):
md 正文文本为: remem-ber
Ctrl + F:
查找(\w)-(\w)
替换:\1\2
替换的结果是:
remem\2er
而本来希望得到的结果是remember
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 in VNote 2.7.2 using the Ctrl+F workflow, the text remem-ber, the pattern (\w)-(\w), and replacement \1\2. Trace the regex replacement entry point and verify that the completed replacement produces remember rather than remem\2er.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100