From 5695e32c4f70cc56f80f36affc8bb29489cbf720 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 30 Oct 2024 19:51:39 -0400 Subject: [PATCH] fix(updateScript): properly filter inputs --- apps/update/src/misc.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/update/src/misc.ts b/apps/update/src/misc.ts index 2c4094bc..bb9fe1f5 100644 --- a/apps/update/src/misc.ts +++ b/apps/update/src/misc.ts @@ -17,19 +17,19 @@ export const updateFlakeInputs = () => { .toString() // Add an extra blank line between inputs .split('\n•') - .join('\n\n•') - // Shorten git revs to help readability - .split('\n') - .map((l) => l - .replace(/.{33}\?narHash=sha256[^']*/, '') - .replace(/&rev=(.{7})[^'&]*/, (_, backref) => `&rev=${backref}`)) .filter((input) => ![ 'systems', 'flake-utils', 'flake-parts', 'treefmt-nix', 'lib-aggregate', - ].some((inputName) => input.startsWith(`• Updated input '${inputName}'`))) + ].some((inputName) => input.startsWith(` Updated input '${inputName}'`))) + .join('\n\n•') + // Shorten git revs to help readability + .split('\n') + .map((l) => l + .replace(/.{33}\?narHash=sha256[^']*/, '') + .replace(/&rev=(.{7})[^'&]*/, (_, backref) => `&rev=${backref}`)) .join('\n'); return output;