Why is `optionVAlue` considered correct?
Kind of Issue
Change in behavior / Regression
Tool or Library
cspell
Version
v4.0.4
Supporting Library
Not sure / None
OS
macOS
OS Version
12.7.5 (21H1222)
Description
function abc(optionVAlue) {
console.log("optionVAlue::", optionVAlue);
}
Steps to Reproduce
- Install 'Code Spell Checker' VSCode Extenstion.
- Create test.jsx file
- paste code:
function abc(optionVAlue) { console.log("optionVAlue::", optionVAlue); }
Expected Behavior
"optionVAlue": Unknown word.cSpell
Additional Information
No response
cspell.json
No response
cspell.config.yaml
No response
Example Repository
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
@Arun-StarApps,
I can see how this is confusing and non-ideal. The spell checker tries its best to break code up into meaningful words:
One of the things it does it to try and find the word all in lower case, if it finds it, it is considered correct.
That is what is happening in this case.
There is not an easy solution to this problem, since it is common to see things like BREAKing, CURLedRequest, and PHPUnit in code.
@Jason3S
I was expecting 'optionVAalue' will be broken into three workds 'option', 'V' and 'Alue'.
so is there any setting to do this ?