stripLow.js 288 B

1234567
  1. import assertString from './util/assertString';
  2. import blacklist from './blacklist';
  3. export default function stripLow(str, keep_new_lines) {
  4. assertString(str);
  5. var chars = keep_new_lines ? '\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F' : '\\x00-\\x1F\\x7F';
  6. return blacklist(str, chars);
  7. }