scripts/prepare-release: fix git error check

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-05 11:46:10 +01:00
parent b252215b15
commit 4aa28c71f4
+1 -1
View File
@@ -90,7 +90,7 @@ async function detectPatchVersionsForRef(repo, ref) {
}
} catch (error) {
if (
error.stderr?.match(/^fatal: Path .* exists on disk, but not in .*$/m)
error.stderr?.match(/^fatal: Path .* exists on disk, but not in .*$/im)
) {
console.log(`Skipping new package ${pkg.packageJson.name}`);
continue;