Initial commit
This commit is contained in:
5
node_modules/validator/es/lib/whitelist.js
generated
vendored
Normal file
5
node_modules/validator/es/lib/whitelist.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import assertString from './util/assertString';
|
||||
export default function whitelist(str, chars) {
|
||||
assertString(str);
|
||||
return str.replace(new RegExp("[^".concat(chars, "]+"), 'g'), '');
|
||||
}
|
||||
Reference in New Issue
Block a user