From 974d0545cc785185f23a427c4341268ba9c34b31 Mon Sep 17 00:00:00 2001 From: JSon Date: Fri, 23 Feb 2024 22:22:12 +0800 Subject: [PATCH] Use allowlisted instead of whitelisted; Use blocklisted instead of blacklisted; --- test/vendor/underscore.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/vendor/underscore.js b/test/vendor/underscore.js index dfd89b279..a968a527c 100644 --- a/test/vendor/underscore.js +++ b/test/vendor/underscore.js @@ -1019,7 +1019,7 @@ } }; - // Return a copy of the object only containing the whitelisted properties. + // Return a copy of the object only containing the allowed properties. _.pick = function(object, oiteratee, context) { var result = {}, obj = object, iteratee, keys; if (obj == null) return result; @@ -1039,7 +1039,7 @@ return result; }; - // Return a copy of the object without the blacklisted properties. + // Return a copy of the object without the disallowed properties. _.omit = function(obj, iteratee, context) { if (_.isFunction(iteratee)) { iteratee = _.negate(iteratee); @@ -1545,4 +1545,4 @@ return _; }); } -}.call(this)); \ No newline at end of file +}.call(this));