Skip to content

Commit

Permalink
chore(readme): fix import and apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zr87 committed Aug 23, 2024
1 parent 678ec2b commit 3b1c669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# accent-folding ![GitHub package.json version](https://img.shields.io/github/package-json/v/zr87/accent-folding) [![Coverage Status](https://coveralls.io/repos/github/zr87/accent-folding/badge.svg?branch=main)](https://coveralls.io/github/zr87/accent-folding?branch=main)
# accent-folding ![GitHub package.json version](https://img.shields.io/github/package-json/v/zr87/accent-folding) [![Coverage Status](https://coveralls.io/repos/github/zr87/accent-folding/badge.svg?branch=main)](https://coveralls.io/github/zr87/accent-folding?branch=main)

## Description

Expand Down Expand Up @@ -75,7 +75,6 @@ Use the 3d argument to specify the wrapping html tag (strong, em, span etc.):
af.highlightMatch('Fulanilo López', 'lo', 'strong'); // --> "Fulani<strong>lo</strong> <strong>Ló</strong>pez"
```


## Extending and Overriding the Accent Map

The `AccentFolding` class allows you to extend or override the default accent map by providing a custom map to the constructor.
Expand All @@ -85,7 +84,7 @@ The `AccentFolding` class allows you to extend or override the default accent ma
To extend the accent map with new mappings, pass an object with the new mappings to the constructor. For example:

```js
import AccentFolding from './accentFolding.js';
import AccentFolding from 'accent-folding';

const customAccentMap = { 'ö': 'oe', '': 't' };
const accentFolder = new AccentFolding(customAccentMap);
Expand Down

0 comments on commit 3b1c669

Please sign in to comment.