Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tweak grammar
  • Loading branch information
tbrowder committed Jul 29, 2018
1 parent bddb877 commit 54200d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htmlify.p6
Expand Up @@ -36,6 +36,7 @@ use Perl6::TypeGraph::Viz;
use Pod::Convenience;
use Pod::Htmlify;
use OO::Monitors;

# Don't include backslash in Win or forwardslash on Unix because they are used
# as directory separators. These are handled in lib/Pod/Htmlify.pm6
my \badchars-ntfs = Qw[ / ? < > : * | " ¥ ];
Expand All @@ -45,8 +46,8 @@ my \badchars = $*DISTRO.is-win ?? badchars-ntfs !! badchars-unix;
my monitor PathChecker {
has %!seen-paths;
method check($path) {
note "$path got badchar" if $path.contains(any(badchars));
note "$path got empty filename" if $path.split('/')[*-1] eq '.html';
note "$path has badchar" if $path.contains(any(badchars));
note "$path has empty filename" if $path.split('/')[*-1] eq '.html';
note "duplicated path $path" if %!seen-paths{$path}:exists;
%!seen-paths{$path}++;
}
Expand Down

0 comments on commit 54200d0

Please sign in to comment.