Skip to content

Commit

Permalink
fix(keyPredictor): remove unicode symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Mar 5, 2023
1 parent 44f2524 commit 2ff1c7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/keyPredictor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import slugify from 'slugify';

export const keyPredictor = (str: string) =>
slugify(str.trim(), {
// eslint-disable-next-line no-control-regex
slugify(str.trim().replace(/[^\x00-\x7F]/g, ''), {
// eslint-disable-next-line no-useless-escape
remove: /[aeiou `~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]|/gi,
})
Expand Down

0 comments on commit 2ff1c7f

Please sign in to comment.