We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 122a8ef commit 8d50e1dCopy full SHA for 8d50e1d
CHANGELOG.md
@@ -21,6 +21,7 @@ Here are a few common issues.
21
- There was an error when calling commands `testString` and `showVersion`.
22
- Code provider:
23
- `px` HTML expression detection.
24
+ - Improvement in camel case variable detection.
25
26
## [0.1.0] - 2019-11-05
27
src/helpers/utils.ts
@@ -33,7 +33,7 @@ export function removeSentenceQuotes(text: string | undefined): string | undefin
33
}
34
35
export function isCamelCase(text: string): boolean {
36
- return /^[a-z][^\s]+$/.test(text);
+ return /^([a-z][^A-Z\s]+)([A-Z][^A-Z\s]*)+$/.test(text);
37
38
39
export function isPascalCase(text: string): boolean {
0 commit comments