ignoreCase = true (default behavior) lowercases all user input
See original GitHub issueThis code in Async.js
causes all user input to be toLowerCase
’d:
if (ignoreCase) {
inputValue = inputValue.toLowerCase();
}
Why does this exist? If A user types an uppercase character and a lowercase character is printed, that would be confusing for the user. I’m happy to submit a PR removing this conditional unless there is a workaround I’m not aware of or if there is a valid reason for this code.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:21
- Comments:11 (1 by maintainers)
Top Results From Across the Web
IgnoreCase
IgnoreCase is an option for string manipulation and searching functions that specifies whether lowercase and uppercase letters should be treated as ...
Read more >Python - Ignore letter case
For this simple example you can just compare lowercased rules with "yes" : rules = input ("Would you like to read the instructions?...
Read more >7/14: How to make the user's response case-insensitive?
you can make the user input all uppercase or all lowercase by. prompt(…).toUpperCase() or .toLowerCase() and then change the cases accordingly.
Read more >How to do case-insensitive and accent-insensitive search ...
To find all the people who have Barry for any of their names, you can (upper- or) lowercase the column and search string:...
Read more >MATLAB caseSensitivePattern
Use caseSensitivePattern to enforce case sensitivity in case-insensitive functions. Create a string of lowercase letters. Create a pattern that matches ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1
I created a new PR at https://github.com/JedWatson/react-select/pull/1858.