All files / regexp blankChars.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11          32x   32x      
import { RegExpBuilder } from './RegExpBuilder'
 
// https://github.com/frandiox/normalize-unicode-text/blob/master/src/index.ts
// 新增 200E, 200F
const baseRegExp =
  /[\s\u180E\u200B-\u200F\u2060\uFEFF \u00A0\u1680\u2000-\u200A\u202F\u205F\u3000\u2420\u2422\u2423]/
 
export const blankCharsRegExpBuilder = new RegExpBuilder({
  baseRegExp: baseRegExp,
})