Allow - in file extensions
[conv.git] / conv.pl
diff --git a/conv.pl b/conv.pl
index 2378828..50d205d 100755 (executable)
--- a/conv.pl
+++ b/conv.pl
@@ -75,7 +75,7 @@ while (<CONF>) {
     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);