You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- New configuration setting `string-checker-js.file-extension-exclude` to specify file extensions to exclude from scan (default: `.d.ts`, `.min.js`).
28
+
- New configuration setting `string-checker-js.variable.non-alpha-ratio-threshold` to specify the amount of non-alphabetical characters allowed in a string (default: `0.2`).
29
+
30
+
### Changed
31
+
32
+
- Entropy provider:
33
+
- Entropy is now computed from a string cleaned of its non-alphabetical characters.
34
+
Example:
35
+
`'"{field}" is invalid!'` has an entropy of 3.63.
36
+
`'field is invalid'` has an entropy of = 3.12.
37
+
- File extension filtering now uses a suffix-compare method to support multiple-dots extension (eg.: `.d.ts`).
38
+
- Configuration setting `string-checker-js.workspace.file-max` maximum value set to 1000 (500 before).
39
+
- Tokens are all collapsed by default when switching to token/file view.
40
+
- Code refactoring.
41
+
42
+
## [0.0.2] - 2019-10-30
43
+
44
+
### Added
45
+
46
+
- Code provider:
47
+
- Environment variable detection.
48
+
- Class provider:
49
+
-`rgb()` JavaScript expression detection.
50
+
51
+
### Changed
15
52
16
53
- Formatting in README file.
17
54
- "Release Notes" section removed from README file.
18
55
- "Known Issues" section mode from README to CHANGELOG file.
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,14 @@ Strings are evaluated by different providers, each being dedicated to a specific
30
30
| Provider | Description | Example |
31
31
|---|---|---|
32
32
| Keywords provider | Detects strings from **user list**. | "far fa-smile" will be detected as a [Font Awesome smile icon](https://fontawesome.com/icons/smile?style=regular). |
33
-
| Class provider | Detects strings as **class names**. ||
33
+
| Class provider | Detects strings as **class names** or **expressions**. |"use strict" will be detected as JavaScript expression.|
34
34
| Code provider | Detects strings as **code** (variable names). | "../path/to/my/file" will be detected as a path.<br>"someVariable" will be detected as a camel case variable. |
35
35
| Natural language provider | Detects strings as **natural language**. |["Ceci n'est pas une pipe"](https://en.wikipedia.org/wiki/Ren%C3%A9_Magritte) will be detected as french language. |
36
-
| Entropy provider | Detects string as **[Gibberish](https://en.wikipedia.org/wiki/Gibberish)**.<br>String [entropy](https://en.wikipedia.org/wiki/Entropy_(information_theory)) threshold can be configured in settings (`entropy.threshold`, default = 3). | "abbcccddddeeeee" has an entropy of 2.15.<br>"dd/MM/yyyy hh:mm:ss" has an entropy of 2.88.<br>["Gloubi-boulga"](https://fr.wikipedia.org/wiki/Gloubi-boulga) has an entropy of 2.93. |
36
+
| Entropy provider | Detects string as **[Gibberish](https://en.wikipedia.org/wiki/Gibberish)**.<br>String [entropy](https://en.wikipedia.org/wiki/Entropy_(information_theory))[1]threshold can be configured in settings (`entropy.threshold`, default = 3). | "abbcccddddeeeee" has an entropy of 2.44.<br>"dd/MM/yyyy hh:mm:ss" has an entropy of 2.88.<br>["Gloubi-boulga"](https://fr.wikipedia.org/wiki/Gloubi-boulga) has an entropy of 2.75. |
37
37
| String provider |**Pass-through** detection. |*Any string will be detected as such.*|
38
38
39
+
-[1] Starting at version v0.0.3, **string entropy** is computed after removing non-alphabetical characters.
40
+
39
41
The `string.checker.js.testString`[command](#extension-settings) brings a convenient way to test all providers for a given string.
0 commit comments