aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-02-29 02:50:53 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-02-29 02:50:53 +0100
commitf4925927352d37ac7e1d31c1350edf951f3889ae (patch)
tree2905a3b5cabf0281ba6b29d888bf1b8826c9e011
parent61907330795649cbdc7c893bb152a6c198a4e67b (diff)
downloadxK-f4925927352d37ac7e1d31c1350edf951f3889ae.tar.gz
xK-f4925927352d37ac7e1d31c1350edf951f3889ae.tar.xz
xK-f4925927352d37ac7e1d31c1350edf951f3889ae.zip
factoids: look for duplicates case-insensitively
-rwxr-xr-xplugins/zyklonb/factoids2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/zyklonb/factoids b/plugins/zyklonb/factoids
index 4fe7aee..3b6be64 100755
--- a/plugins/zyklonb/factoids
+++ b/plugins/zyklonb/factoids
@@ -79,7 +79,7 @@ sub learn {
my $entries = $db{$name};
return &$respond("duplicate definition")
- if grep { $_ eq $definition } @$entries;
+ if grep { lc $_ eq lc $definition } @$entries;
push @$entries, $definition;
&$respond("saved as #${\scalar @$entries}");