mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-05-09 04:25:53 +08:00
5 lines
187 B
JavaScript
5 lines
187 B
JavaScript
import assertString from './util/assertString';
|
|
export default function whitelist(str, chars) {
|
|
assertString(str);
|
|
return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), '');
|
|
} |