Widen idea of a valid Debian package name
authoradamch <adamch>
Fri, 4 Aug 2006 00:33:23 +0000 (00:33 +0000)
committeradamch <adamch>
Fri, 4 Aug 2006 00:33:23 +0000 (00:33 +0000)
aptquery.sml

index bf0ec6a..ba0e761 100644 (file)
@@ -3,7 +3,7 @@ struct
 
 type info = { name : string, section : string, descr : string, installed : bool }
 
-fun validName s = CharVector.all (fn ch => Char.isAlphaNum ch orelse ch = #"_" orelse ch = #"-") s
+fun validName s = CharVector.all (fn ch => Char.isAlphaNum ch orelse ch = #"_" orelse ch = #"-" orelse ch = #".") s
                  andalso (size s > 0 andalso String.sub (s, 0) <> #"-")
                           
 fun query name =