angular-translate / angular-translate/grunt-angular-translate

Ignore directives?

Aperta
#87 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
90
Fork
49
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi!

I'm trying to extract from
```
{{entity.id}}
```

If a use a custom regex, I can get what I need (SEARCH.SAMPLES.ID)

The problem is that **{{entity.id}}** is also extracted. I believe it happens because it matches a directive
```
TRANSLATION
```

I don't want to modify existing code. Is there any way to ignore directives (or any other pattern) while extracting? I would only like to use my custom regex and a filter ( {{'TRANSLATION' | translate}} ) and ignore anything else.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.