adopted-ember-addons / adopted-ember-addons/ember-cli-string-helpers
Feature Request: Remove Trailing space on truncation
未关闭
- 主要语言
- TypeScript
- 星标
- 74
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hello -
I've come across a needed feature (at least for me) is that when truncating text that falls on a space, I'd like to able to pass in a flag that strips the trailing space before appending the ellipsis,
```hbs
{{truncate "my string here" 3 true true}}
```
or via options object
```hbs
{{truncate "my string here" 3 true trim=true}}
```
I'd be happy to implement it.
贡献指南
评估
这个 Issue 还没有评估数据。