blacklist.js 186 Bytes RawBlameHistoryPermalink 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'), ''); }