Skip to content

Commit a27b0a6

Browse files
committed
Use like instead of ok with matching
1 parent af049af commit a27b0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xt/latest-version.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ my $ci_version = (sort_by_version(
3333
@{ $ci->{jobs}{'matrix-tests'}{strategy}{matrix}{'perl-version'} }))[-1];
3434

3535
plan(tests => 2);
36-
ok($perl_org =~ /version-highlight.*\Q$ci_version\E\b/, $ci_version);
36+
like($perl_org, qr/version-highlight.*\Q$ci_version\E\b/, $ci_version);
3737

3838
my $doc_version = $ci_version;
3939
$doc_version =~ s/\.[0-9]+$//;

0 commit comments

Comments
 (0)