Skip to content

Commit

Permalink
Adds new rule to exclude some lines
Browse files Browse the repository at this point in the history
Rules for finding URLs were heuristic, and this file had a couple of examples that put URLs in some markup. This closes Raku#4053, eliminating also skip code. All tests pass now, including that file
  • Loading branch information
JJ committed Apr 21, 2022
1 parent a24a775 commit 1a5a516
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions xt/links-not-links.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ my @files = Test-Files.pods.grep(* ~~ /Type | Language/);
plan +@files;

for @files -> $file {
if $file.ends-with('/Language/pod.pod6') {
skip('bug #4053');
next;
}
my @lines;
my Int $line-no = 1;
# say $file.IO.lines.grep( * ~~ / https?\: /)
# .grep( * !~~ /review\:\s+ | "wget" | ^\# | \#\s+OUTPUT / ).raku;
my @links = $file.IO.lines.grep( * ~~ / https?\: /)
.grep( * !~~ /review\:\s+/) # eliminate review lines from IRC logs
.grep( * !~~ /wget/)
.grep( * !~~ /disclaimer\.txt/)
.grep( * !~~ /^\#/)
.grep( * !~~ /\#\s+OUTPUT/); # eliminates output lines
my @links-not-links;
Expand Down

0 comments on commit 1a5a516

Please sign in to comment.