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

Feature Request: Remove Trailing space on truncation

オープン
#27 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。