Skip to content

Commit 4f9c67b

Browse files
committed
fix some typos
1 parent 2ee960f commit 4f9c67b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ This is a major release, and it might be not compatible with your current usage
5454
- `colorCalculateDistance()`: calculates the difference between 2 colors using the simple CIE76 formula
5555
- `textToColorHash()`: calculates a color from a text string
5656
- `reduceToText`: shrinks HTML content and React elements to plain text, used for `<TextReducer />`
57-
- `decodeHtmlEntities`: decode a string of HTML text, map HTML entities back to UTF-8 char
57+
- `decodeHtmlEntities`: decode a string of HTML text, map HTML entities back to UTF-8 chars
5858
- SCSS color functions
5959
- `eccgui-color-var`: returns a var of a custom property used for palette color
6060
- `eccgui-color-mix`: mix 2 colors in `srgb`, works with all types of color values and CSS custom properties

src/common/utils/reduceToText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const reduceToText: ReduceToTextFuncType = (input, options) => {
5353
strict: true,
5454
} as DecodeHtmlEntitiesOptions;
5555
let decodeErrors = 0;
56-
// we decode in pieces to some error tolerance even in strict mode
56+
// we decode in pieces to apply some error tolerance even in strict mode
5757
text = text
5858
.split(" ")
5959
.map((value) => {

src/components/TextReducer/TextReducer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export interface TextReducerProps extends Pick<React.HTMLAttributes<HTMLElement>
3030
*/
3131
decodeHtmlEntities?: boolean;
3232
/**
33-
* Set the options used to decode the html entities, if `decodeHtmlEntities` is enabled.
33+
* Set the options used to decode the HTML entities, if `decodeHtmlEntities` is enabled.
3434
* Internally we use `he` library, see their [documentation on decode options](https://www.npmjs.com/package/he#hedecodehtml-options).
35-
* If not used we use `{ isAttributeValue: true, strict: true }` as default value.
35+
* If not set we use `{ isAttributeValue: true, strict: true }` as default value.
3636
*/
3737
decodeHtmlEntitiesOptions?: DecodeHtmlEntitiesOptions;
3838
}

0 commit comments

Comments
 (0)