* Added the fanboy filter.
[filters.git] / fanboy
CommitLineData
5fbd4551
JH
1#!/usr/bin/perl
2
3if (! @ARGV) {
4 @ARGV=qw(linus git linux rebase merge cherry-pick branch);
5}
6
7my $coolstuff=join("|", map { "\Q$_\E" } @ARGV);
8
9my $len=0;
10while (<STDIN>) {
11 while(/(($coolstuff)[.?!]*)/ig) {
12 $len+=length($1)+1;
13 if ($len > 70) {
14 print "\n";
15 $len=0;
16 }
17 print $1." ";
18 }
19}
20print "\n" if $len;
This page took 0.010591 seconds and 4 git commands to generate.