Skip to content

Commit

Permalink
📝 Format readmes with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Apr 22, 2024
1 parent 5f68437 commit 050c9ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/input-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,6 @@ type Props = {
};
```

Note: the `InputElement` type referenced in the event handlers above is a union of `HTMLInputElement` and `HTMLTextAreaElement` and is available as an export (`import type { InputElement } from '@acusti/input-text';`).
Note: the `InputElement` type referenced in the event handlers above is a
union of `HTMLInputElement` and `HTMLTextAreaElement` and is available as
an export (`import type { InputElement } from '@acusti/input-text';`).
8 changes: 6 additions & 2 deletions packages/matchmaking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ passed in but sorted by how close they match the passed-in `text`, while
`getBestMatch` just returns the text of the single closest match found
(i.e. `sortByBestMatch(payload)[0]`).

The `excludeMismatches` option for `sortByBestMatch` allows that function to also filter the results to only include (partial) matches, where a match include fuzzy matches that are strong enough to qualify as a partial match. For example, considering a list of all states in alphabetical order, searching for the text `"ma"` with `excludeMismatches: true` returns:
The `excludeMismatches` option for `sortByBestMatch` allows that function
to also filter the results to only include (partial) matches, where a match
include fuzzy matches that are strong enough to qualify as a partial match.
For example, considering a list of all states in alphabetical order,
searching for the text `"ma"` with `excludeMismatches: true` returns:

```js
[
Expand All @@ -63,5 +67,5 @@ The `excludeMismatches` option for `sortByBestMatch` allows that function to als
'New Jersey', // short distance from match
'New Mexico', // short distance from match
'New York', // short distance from match
]
];
```

0 comments on commit 050c9ab

Please sign in to comment.