adopted-ember-addons / adopted-ember-addons/ember-cli-string-helpers

Feature Request: Remove Trailing space on truncation

未关闭
#27 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。