From def9b9ca72821c60563d7a14783ea2563a966a29 Mon Sep 17 00:00:00 2001 From: Brody Rampono Date: Wed, 26 Apr 2023 12:49:53 -0700 Subject: [PATCH 1/2] Remove repeated text --- README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.md b/README.md index 989567f..ec8a9b6 100644 --- a/README.md +++ b/README.md @@ -120,16 +120,6 @@ console.log(profanity.isProfane("Don't be an asshole")); // log: false ``` -### 6. Check if the string contains any swear words -Function `.isProfane()` return `True` if any words in the given string has a word existing in the wordlist. - -```js -let dirtyText = "That l3sbi4n did a very good H4ndjob."; - -console.log(profanity.isProfane(dirtyText)); -// log: true -``` - ### 7. Language support The lib supports two languages they are Brazilian Portuguese and English, the defaults are Portuguese and to change this, see below. From 21e475ac25f888de15def4b9900359ab3a00bdc3 Mon Sep 17 00:00:00 2001 From: Brody Rampono Date: Wed, 26 Apr 2023 12:52:02 -0700 Subject: [PATCH 2/2] Update subsequent numbers --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ec8a9b6..ccb608f 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ console.log(profanity.isProfane("Don't be an asshole")); // log: false ``` -### 7. Language support +### 6. Language support The lib supports two languages they are Brazilian Portuguese and English, the defaults are Portuguese and to change this, see below. ```js @@ -138,7 +138,7 @@ console.log(profanity.censor()); > The `config` Object will be overwritten the default values. -### 8. Overrides placeHolder +### 7. Overrides placeHolder To use a custom placeHolder, just overwritten the default value with a config Object. ```js @@ -154,7 +154,7 @@ console.log(profanity.censor()); // log: ---- this ---- ``` -### 9. Overrides default dictionary +### 8. Overrides default dictionary To overrides the default profane dictionary, just set the new `Array` of words in config Object. ```js