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

Feature Request: Remove Trailing space on truncation

Aberta
#27 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
74
Forks
27
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.