]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/lg2_cfg: fix RE for multi-line preservation
authorEric Wong <e@80x24.org>
Sun, 30 Mar 2025 17:57:12 +0000 (17:57 +0000)
committerEric Wong <e@80x24.org>
Sun, 30 Mar 2025 18:18:57 +0000 (18:18 +0000)
I forgot to run the test on a machine with libgit2 1.8+ before
pushing :x

t/lg2_cfg.t

index 067bc866f5ed1c25028aa17da3c704fde3f846da..4c2dc9493864263b6dd101547fe7ab85555a1b84 100644 (file)
@@ -69,7 +69,7 @@ long line
 EOM
 write_file '>', $f, $src;
 $cfgwr_commit->($f, [ [ qw(x.b d) ], [ qw(--add x.b e) ] ]);
-like try_cat($f), qr/^\Q$src\E$/sm, 'newlines preserved';
+like try_cat($f), qr/^\Q$src\E/sm, 'newlines preserved';
 } # SKIP
 
 done_testing;