interpreting span when using regexp
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
When using Vimium to search for text patterns that span across multiple span elements on a webpage using regular expressions, the search fails to match the expected text.
Steps to reproduce the behavior:
- Go to URL 'https://stackoverflow.com/questions/4182554/html-css-font-color-vs-span-style'
- Activate Vimium's search feature (by pressing /).
- Type the regular expression \11.5k.*4 (or another similar pattern that aims to grep parts divided by span).
- Observe that the search does not match the expected pattern in the text which is visually continuous but structured within separate span elements.
- The regular expression search should match patterns that span across multiple span elements, recognizing and highlighting the entire pattern.
- Chrome 119.0.6045.160 (Official Build) (64-bit), JavaScript | V8 11.9.169.6
- Vimium 2.0.5
Contributor guide
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
Start with Vimium's search feature and reproduce the issue on the linked Stack Overflow URL using the stated regular expression. Inspect how text divided across span elements is searched and highlighted; done means the pattern matches and highlights the full visually continuous text across those elements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100