Skip to content

Conversation

@fouaddev
Copy link

@fouaddev fouaddev commented Oct 14, 2019

Description of the pipe

I needed a pipe that capitalizes the first word in a title and lowercase the rest of the title words for paragraphs of articles in my website.

There is ucwords that supports titles, it capitalizes every word in a title. But certain small paragraphs you want to only capitalize the first letter of a paragraph, and lower case the rest of its words.

@fouaddev
Copy link
Author

fouaddev commented Oct 14, 2019

The name I gave to this pipe is ucFirstLcRest or ucfirstlcrest which stands for uppercase first word, lowercase the rest. I have another name suggestion ucFirstOnly or ucfirstonly which stands for uppercase first word only and lowercase the rest.

@fouaddev fouaddev changed the title uc first word and lc rest for title support uc first word and lc rest for Paragraph support Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant