Skip to content

Commit 5c9dbc4

Browse files
authored
README.md
1 parent d9b58e6 commit 5c9dbc4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Tired of offensive language in your app? 🚫 **BadFilter.js** to the rescue! We
88

99
**BadFilter.js** offers two powerful components:
1010
- **FilterBadWord Class**: The brains of the operation! This utility class is responsible for filtering unwanted words from your text.
11-
- **filters_badword Class**: A lightweight wrapper around `FilterBadWord` for easier, more streamlined usage. Think of it as the "express mode" for your text-filtering needs!
11+
- **filters_badword Function**: A lightweight wrapper around `FilterBadWord` for easier, more streamlined usage. Think of it as the "express mode" for your text-filtering needs!
1212

1313
With these components, you can easily cleanse your text, ensuring a respectful, safe online environment. 🚀✨
1414

@@ -32,9 +32,8 @@ Want to use BadFilter.js in your web app? No problem! Here’s how:
3232
```html
3333
<!-- Add badword.js into the HTML page -->
3434
<script type="text/javascript" src="./badword.js"></script>
35-
<!-- Or import directly if supporting ES6 Module -->
36-
<script>
37-
import { FilterBadWord, filters_badword } from './badword.js';
35+
<!-- Or import directly if supporting ES Module -->
36+
<script type="module" src="./badword.js">
3837
</script>
3938

4039
<script>

0 commit comments

Comments
 (0)