From 7bc3fce77d6717ccea1dc30e1eb0c2d48e181015 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 29 Jun 2022 09:37:54 +0100 Subject: [PATCH] Change file extension filtering in merge request file tree This changes the filtering in the merge request file tree to use micromatch library to allow for glob matching. Closes https://gitlab.com/gitlab-org/gitlab/-/issues/343985 --- .../diffs/components/tree_list.vue | 18 +++++++++-- locale/gitlab.pot | 2 +- package.json | 1 + .../diffs/components/tree_list_spec.js | 32 ++++++++++++++++++- 4 files changed, 48 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/diffs/components/tree_list.vue b/app/assets/javascripts/diffs/components/tree_list.vue index 85e4199d1c1a38..ffbea854001271 100644 --- a/app/assets/javascripts/diffs/components/tree_list.vue +++ b/app/assets/javascripts/diffs/components/tree_list.vue @@ -1,6 +1,7 @@