]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/edit.t
lei add-external: completion for existing URL basenames
[public-inbox.git] / t / edit.t
index 4b004c1c2b622f58b5f7b8a2ff3579a59c40a3db..0d57e6298d0521060c4f8ac3565959513ce3242e 100644 (file)
--- a/t/edit.t
+++ b/t/edit.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2019-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2019-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 # edit frontend behavior test (t/replace.t for backend)
 use strict;
@@ -41,7 +41,7 @@ $t = '-F FILE'; {
        ok(run_script($cmd, undef, $opt), "$t edit OK");
        $cur = PublicInbox::Eml->new($ibx->msg_by_mid($mid));
        like($cur->header('Subject'), qr/bool pfx/, "$t message edited");
-       like($out, qr/[a-f0-9]{40}/, "$t shows commit on success");
+       like($out, qr/[a-f0-9]{40,}/, "$t shows commit on success");
 }
 
 $t = '-m MESSAGE_ID'; {
@@ -51,7 +51,7 @@ $t = '-m MESSAGE_ID'; {
        ok(run_script($cmd, undef, $opt), "$t edit OK");
        $cur = PublicInbox::Eml->new($ibx->msg_by_mid($mid));
        like($cur->header('Subject'), qr/boolean prefix/, "$t message edited");
-       like($out, qr/[a-f0-9]{40}/, "$t shows commit on success");
+       like($out, qr/[a-f0-9]{40,}/, "$t shows commit on success");
 }
 
 $t = 'no-op -m MESSAGE_ID'; {