]> git.donarmstrong.com Git - infobot.git/blobdiff - scripts/factpack.pl
* in factpact.pl import script needs to be lower case, or queries against the pack...
[infobot.git] / scripts / factpack.pl
index 6bb60d9fed82562d15b51979becef8756a56a9f1..c9f3151c38556ce5c79c56fec4f5b8c56476c0db 100755 (executable)
@@ -69,6 +69,9 @@ foreach (@ARGV) {
         $key =~ s/\t/ /g;
         $value =~ s/\t/ /g;
 
+        # The key needs to be lower case to match query case
+        $key = lc $key;
+
         ### TODO: check if it already exists. if so, don't add.
         ### TODO: combine 2 setFactInfo's into single
         &setFactInfo( $key, "factoid_value", $value );