All files / regexp/src printableCharacterRegExp.ts

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

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 12 13 14 15                          3x  
/**
 * A RegExp that matches all printable ASCII and Unicode characters
 *
 * @example
 * Match printable character
 * ```ts
 * const result = printableCharacterRegExp.test("💩");
 * console.log(result); // true
 * ```
 *
 * @remark
 * Using uppercase `P` to exclude all control characters.
 */
export const printableCharacterRegExp = /\P{C}/u;