negative lookahead not working in regex search.
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
I have enabled regex in my advanced options and some easy regex works already but this one doesn't:
in this page do this regex:
1080(?!.*x264) and you will see that it will match many things that include 1080 and x264 after it.
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
Reproduce the issue on the linked subtitle page with advanced regex enabled and the pattern 1080(?!.*x264). Start by tracing Vimium's regex search entry point and compare the matches with the intended negative-lookahead behavior; done means matches containing x264 after 1080 are excluded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100