From 3b1c669570a6620f97c296dffca74f5cfce440c0 Mon Sep 17 00:00:00 2001 From: Zoltan Rakottyai Date: Fri, 23 Aug 2024 10:10:50 +0200 Subject: [PATCH] chore(readme): fix import and apply formatting --- .github/dependabot.yml | 6 +++--- README.md | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5f0889c..d91a92a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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' diff --git a/README.md b/README.md index fb149c3..500603d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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'); // --> "Fulanilo 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. @@ -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);