diff --git a/test/box/args.test b/test/box/args.test
index 05e942901dc1a351f83e94d6c8b57c96325b0cfd..fa2595804f4ed3fdf55572e6f2c929573f3a0867 100644
--- a/test/box/args.test
+++ b/test/box/args.test
@@ -9,7 +9,7 @@ server.test_option("-c")
 server.test_option("--config tarantool.cfg")
 server.test_option("--daemonize")
 sys.stdout.pop_filter()
-sys.stdout.push_filter("(\d)\.\d\.\d(-\d+-\S+)?", "\\1.minor.patch-<rev>-<commit>")
+sys.stdout.push_filter("(\d)\.\d\.\d(-\d+-\w+)?", "\\1.minor.patch-<rev>-<commit>")
 server.test_option("--version")
 server.test_option("-V          ")
 sys.stdout.pop_filter()
diff --git a/test/box/show.test b/test/box/show.test
index 1d0472ceb1cff065f954f3e747e0d1a3e961e1e4..d31da674f20533f17aa16e8b86d3a1ce8e1221f9 100644
--- a/test/box/show.test
+++ b/test/box/show.test
@@ -13,7 +13,7 @@ exec sql "insert into t0 values (1, 'tuple')"
 exec admin "save snapshot"
 exec sql "delete from t0 where k0 = 1"
 exec admin "exec module command"
-sys.stdout.push_filter("(\d)\.\d\.\d(-\d+-\S+)?", "\\1.minor.patch-<rev>-<commit>")
+sys.stdout.push_filter("(\d)\.\d\.\d(-\d+-\w+)?", "\\1.minor.patch-<rev>-<commit>")
 sys.stdout.push_filter("pid: \d+", "pid: <pid>")
 sys.stdout.push_filter("uptime: \d+", "uptime: <uptime>")
 exec admin "show info"