question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

First character of subject always gets lowercased without upperCaseSubject: true

See original GitHub issue

It is okay that first character gets uppercased with upperCaseSubject: true , but I do not want it to always get lowercased without the option.

https://github.com/leonardoanalista/cz-customizable/blob/0ab06f254079cfa37c07ba636e06b1209b907a17/questions.js#L123

I mean, I want it to be something like this.

return (upperCaseSubject ? value.charAt(0).toUpperCase() + value.slice(1) : value); 

I think there should be an option like lowerCaseSubject: boolean so we can choose whether it gets lowercased or not.

What do you think of it?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leonardoanalistacommented, Nov 7, 2019

That’s how it’s been designed. It needs to be upper or lower case, not up to users in this case.

0reactions
leonardoanalistacommented, Nov 7, 2019

default is false, no matter what you type, it will be lowercase

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I make the first letter of a string uppercase in JavaScript?
The first character here fails to capitalize because the array-indexed properties of strings don't access “characters” or code points*. They ...
Read more >
When to Capitalize People's Titles
Do not capitalize the civil title if it is used instead of the name.” Also, Rule 2 says, “Always capitalize a proper noun.”...
Read more >
Overview of SQL LOWER and SQL UPPER functions
This article gives an overview of SQL UPPER function and SQL LOWER function to convert the character case as uppercase and lowercase ......
Read more >
11 English Capitalization Rules: How, When, and Why ...
1. Capitalize the First Word in a Sentence. Always capitalize the first letter of a sentence, no matter what word it is.
Read more >
Sub-string that contains all lowercase alphabets after ...
Given a string str containing lower case alphabets and character '?'. The task is to check if it is possible to make str...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found