From: Chip Black Date: Wed, 31 Dec 2008 23:47:58 +0000 (-0600) Subject: Allow - in file extensions X-Git-Url: http://git.bytex64.net/?p=conv.git;a=commitdiff_plain;h=feb98acbdff7690dee8fc9f6ccc23302f7d56cc9;hp=f3ee86fe378b5f0f8e0d1391e72f3a3bfca83bea Allow - in file extensions --- diff --git a/conv.pl b/conv.pl index 2378828..50d205d 100755 --- a/conv.pl +++ b/conv.pl @@ -75,7 +75,7 @@ while () { s/\s+$//; next if /^$/; - if (/^([\w.]+)\s*=>\s*([\w.]+)\s*:\s*(.*)$/) { + if (/^([\w.-]+)\s*=>\s*([\w.-]+)\s*:\s*(.*)$/) { $rules{$2}{$1} = $3; } elsif (/^($var_re)\s*=\s*(.*)$/) { $vars{$1} = expand($2);