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

Feature Request: Remove Trailing space on truncation

Đang mở
#27 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
74
Fork
27
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.