Skip to content

Commit

Permalink
Make &svg-for-file 7x faster
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Apr 2, 2018
1 parent acb47f9 commit ac14f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pod/Htmlify.pm6
Expand Up @@ -113,7 +113,7 @@ sub footer-html($pod-path) is export {

#| Return the SVG for the given file, without its XML header
sub svg-for-file($file) is export {
join "\n", grep { /^'<svg'/ ff False }, $file.IO.lines;
.substr: .index: '<svg' given $file.IO.slurp;
}

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit ac14f6f

Please sign in to comment.