summaryrefslogtreecommitdiff
path: root/src/node_modules/validator/es/lib/blacklist.js
blob: 77c0e5cfc679e48018ca28982769eb18139566e4 (plain)
1
2
3
4
5
import assertString from './util/assertString';
export default function blacklist(str, chars) {
  assertString(str);
  return str.replace(new RegExp("[".concat(chars, "]+"), 'g'), '');
}