Skip to content

Commit d929930

Browse files
authored
fix(perl): escape heredoc in mojolicious detector spec (#1347)
ameba's new Style/HeredocEscape rule flagged the heredoc that contained \n: switch the marker to <<-'PERL' and store the literal escape.
1 parent 5640dcd commit d929930

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/unit_test/detector/perl/mojolicious_spec.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ describe "Detect Perl Mojolicious" do
5757
end
5858

5959
it "does not detect plain Perl files" do
60-
plain = <<-PERL
60+
plain = <<-'PERL'
6161
use strict;
6262
use warnings;
6363

64-
sub hello { print "hi\\n" }
64+
sub hello { print "hi\n" }
6565
hello();
6666
PERL
6767

0 commit comments

Comments
 (0)