Skip to content

Commit

Permalink
fix(removeBlankChars): 新增 200E, 200F
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Oct 19, 2022
1 parent 3ee756f commit fa9cbbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/removeBlankChars.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// https://github.com/frandiox/normalize-unicode-text/blob/master/src/index.ts
// 新增 200E, 200F
const re =
/(\s+|[\u180E\u200B-\u200D\u2060\uFEFF]+|[ \u00A0\u1680\u2000-\u200A\u202F\u205F\u3000]+|[\u2420\u2422\u2423]+)/gs
/(\s+|[\u180E\u200B-\u200F\u2060\uFEFF]+|[ \u00A0\u1680\u2000-\u200A\u202F\u205F\u3000]+|[\u2420\u2422\u2423]+)/gs

/**
* 从字符串中移除空白字符。
Expand Down

0 comments on commit fa9cbbf

Please sign in to comment.