Skip to content

Commit 0f9cdcc

Browse files
committed
update: PostService index.ts
1 parent 3f93042 commit 0f9cdcc

File tree

1 file changed

+5
-1
lines changed
  • packages/velog-cron/src/services/PostService

1 file changed

+5
-1
lines changed

packages/velog-cron/src/services/PostService/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,14 @@ export class PostService implements Service {
273273
}
274274

275275
const notAlphanumbericKorean = replaced.replace(/[a-zA-Z-0-9]/g, '') // remove korean
276-
if (notAlphanumbericKorean.length / replaced.length > 0.2) {
276+
if (notAlphanumbericKorean.length / replaced.length > 0.3) {
277277
score++
278278
}
279279

280+
if (!isForeign) {
281+
score--
282+
}
283+
280284
const initScore = score
281285
const usedBannedAltKeywords: string[] = []
282286
for (const { value: keyword } of bannedAltKeywords) {

0 commit comments

Comments
 (0)