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

Ternary operator parsing produces some false results

未關閉
#74 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
90
分支
49
PR 合併指標
30 天內沒有已合併 PR

描述

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`).

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。