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

Ternary operator parsing produces some false results

Aberta
#74 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
90
Forks
49
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

With the patch from PR #69 the code snippet below will generate both the false translation keys `active` and `non-active` in addition to the correct one `STATE_LABEL`.

``` HTML

3 {{'STATE_LABEL' | translate}}

```

If I disable the `HtmlFilterTernary` regex (by commenting it out in `tasks/angular-translate.js` the extraction works as expected (only extracting `STATE_LABEL`).

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.