From 3da9c728d6756de9e3280ac8f8fce8a7515d641f Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 22 Dec 2022 23:38:56 -0800 Subject: Make `bun pm ls` only show top-level by default --- src/string_immutable.zig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/string_immutable.zig') diff --git a/src/string_immutable.zig b/src/string_immutable.zig index 76b8b7073..f3a7cdf5e 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -3983,3 +3983,12 @@ pub fn cloneNormalizingSeparators( return buf[0 .. @ptrToInt(remain.ptr) - @ptrToInt(buf.ptr)]; } + +pub fn leftHasAnyInRight(to_check: []const string, against: []const string) bool { + for (to_check) |check| { + for (against) |item| { + if (eqlLong(check, item, true)) return true; + } + } + return false; +} -- cgit v1.2.3