This is an automated email from the ASF dual-hosted git repository. joscorbe pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit feace46943c15708756299fe297c0b50cd9df92f Author: Jose Cordero <corde...@adobe.com> AuthorDate: Mon May 13 16:57:22 2024 +0200 OAK-10798: Rename to removeDescendantsAndSelfMatching. --- oak-run/src/main/js/oak-mongo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oak-run/src/main/js/oak-mongo.js b/oak-run/src/main/js/oak-mongo.js index 75a9c0325e..4854ba792e 100644 --- a/oak-run/src/main/js/oak-mongo.js +++ b/oak-run/src/main/js/oak-mongo.js @@ -348,10 +348,10 @@ var oak = (function(global){ * Use regexFind to find the nodes that match the pattern prior deletion. * * @memberof oak - * @method removeDescendantsMatching + * @method removeDescendantsAndSelfMatching * @param {string} pattern the pattern to match the nodes to be removed. */ - api.removeDescendantsMatching = function(pattern) { + api.removeDescendantsAndSelfMatching = function(pattern) { var count = 0; db.nodes.find({_id: {$regex: pattern}}).forEach(function(doc) { print("Removing " + doc._id + " and its children"); @@ -369,7 +369,7 @@ var oak = (function(global){ * @method removeRootTempNodes */ api.removeRootTempNodes = function() { - this.removeDescendantsMatching("^1:/tmp.+"); + this.removeDescendantsAndSelfMatching("^1:/tmp.+"); } /**