Skip to content

Commit

Permalink
Merge branch 'stable' of https://github.com/Tanat05/korcen.ts into st…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
erukim committed Jun 4, 2022
2 parents a17cdfa + f368838 commit a3c6509
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@

[![PyPI version](https://img.shields.io/pypi/v/korcen.svg?style=flat-square)](https://python.org/pypi/korcen)
[![downloads](https://img.shields.io/pypi/dm/korcen.svg?style=flat-square)](https://pypi.org/project/korcen/)

[![NPM version](http://img.shields.io/npm/v/korcen.svg?style=flat-square)](https://www.npmjs.org/package/npm-expansions)
[![downloads](http://img.shields.io/npm/dm/korcen.svg?style=flat-square)](https://www.npmjs.org/package/npm-expansions)
</div>

![131_20220604170616](https://user-images.githubusercontent.com/85154556/171998341-9a7439c8-122f-4a9f-beb6-0e0b3aad05ed.png)

korean(한국어) censorship(검열)의 줄임말로

누구나 쉽게 텍스트에 비속어가 있는지 확인이 가능합니다.

[서포트 디스코드](https://discord.gg/wyTU3ZQBPE)

## Licenses

GNU General Public License v3.0
Expand All @@ -33,7 +36,7 @@ $ npm i korcen

비속어가 있다면 True 없다면 False 출력하는 예시입니다.

>PyPI 0.1.6
>PyPI
```py
from korcen import korcen

Expand All @@ -43,7 +46,7 @@ text = input()
print(korcen.check(text))
```

>NPM 0.1.4
>NPM
```js
const { check } = require('korcen')
var content = check("문자열")
Expand Down
4 changes: 2 additions & 2 deletions src/checkBadLang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function check(text: string | any): boolean {
text = text.replace(/ㅗd/gi, 'ㅗ')
text = text.replace(/gㅗ/gi, 'ㅗ')
text = text.replace(/ㅗg/gi, 'ㅗ')
let fuckyou = ['ㅗ', '┻', '┴', '┹', '_ㅣ_', '_l_', '_/_', '⊥', '_ |\_', '_|\_', '_ㅣ\_', '_I_']
let fuckyou = ['ㅗㅗ','ㅗ', '┻', '┴', '┹', '_ㅣ_', '_l_', '_/_', '⊥', '_ |\_', '_|\_', '_ㅣ\_', '_I_']
for (const i of fuckyou) {
if (text.includes(i)) {
return true;
Expand Down Expand Up @@ -918,4 +918,4 @@ export function check(text: string | any): boolean {


return false;
}
}

0 comments on commit a3c6509

Please sign in to comment.