Skip to content

Commit bff7f08

Browse files
committed
chore: add comment for only CN in body
1 parent c5648ee commit bff7f08

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/velog-server/src/lib/utils/UtilsService.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export class UtilsService implements Service {
159159
public spamFilter(text: string, isForeign: boolean, isTitle = false): boolean {
160160
const includesCN = /[\u4e00-\u9fa5]/.test(text)
161161
const includesKR = /[-|-|-]/.test(text)
162+
162163
if (includesCN && !includesKR) {
163164
return true
164165
}
@@ -187,9 +188,6 @@ export class UtilsService implements Service {
187188
[text, alphanumericKorean, spaceReplaced].some((t) => t.includes(keyword)),
188189
)
189190
) {
190-
console.log('text', text)
191-
console.log('alphanumericKorean', alphanumericKorean)
192-
console.log('spaceReplaced', spaceReplaced)
193191
return true
194192
}
195193

0 commit comments

Comments
 (0)