AdguardTeam / AdguardTeam/AdguardBrowserExtension

Syntax highlighting is not applied if a rule has `[$***]` modifier

Aberta
#2,877 0 comentários 0 reações 0 responsáveis Ver no GitHub
Bug Priority: P4 Status: In Progress
Linguagem predominante
TypeScript
Estrelas
4.4k
Forks
449
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### Please answer the following questions for yourself before submitting an issue

- [X] Filters were updated before reproducing an issue
- [X] I checked the [knowledge base](https://adguard.com/kb/) and found no answer
- [X] I checked to make sure that this issue has not already been filed

### AdGuard Extension version

4.4.1

### Browser version

Chrome 126.0.6478.128

### OS version

Windows 10 x64

### Ad Blocking

AdGuard Base filter

### Privacy

_No response_

### Social

_No response_

### Annoyances

_No response_

### Security

_No response_

### Other

_No response_

### Language-specific

_No response_

### What Stealth Mode options do you have enabled?

_No response_

### Issue Details

Steps to reproduce:
Add these rules and compare the highlighting

```
[$path=/aaa]example.com#%#//scriptlet('json-prune')
example.com#%#//scriptlet('json-prune')
```

### Expected Behavior

Highlighting is applied to all valid rules.

### Actual Behavior

Highlighting is not applied to the rule with modifier

![image](https://github.com/user-attachments/assets/b837e25f-ce29-44cf-a21e-1aff4ba92320)

### Screenshots

_No response_

### Additional Information

_No response_

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.