From ba863db538867a44286d0aaf395913890a226e46 Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Tue, 4 Jan 2022 20:19:02 +0900 Subject: [PATCH] docs: add documentation on 'keep' --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8f92d6c..8eb3c1b 100644 --- a/README.md +++ b/README.md @@ -152,13 +152,13 @@ In the example below we see: ```js pascalCase('$cat-dog', { keepSpecialCharacters: false }) -// CatDog → not what we want +// CatDog → not what we want -pascalCase('$cat-dog', { keepSpecialCharacters: true }) // $Cat-Dog +pascalCase('$cat-dog', { keepSpecialCharacters: true }) // $Cat-Dog → not what we want pascalCase('$cat-dog', { keep: ['$'] }) -// $CatDog → desired output +// $CatDog → desired output ``` ### Convert special characters into alphabet