Skip to content

uc first word and lc rest for Paragraph support - #160

Open
fouaddev wants to merge 1 commit into
danrevah:masterfrom
fouaddev:feat/ucFirstLcRest
Open

uc first word and lc rest for Paragraph support#160
fouaddev wants to merge 1 commit into
danrevah:masterfrom
fouaddev:feat/ucFirstLcRest

Conversation

@fouaddev

@fouaddev fouaddev commented Oct 14, 2019

Copy link
Copy Markdown

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

fouaddev commented Oct 14, 2019

Copy link
Copy Markdown
Author

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