Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uc first word and lc rest for Paragraph support #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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