summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--lib/VNDB/DB/Releases.pm1
-rw-r--r--lib/VNDB/DB/VN.pm1
3 files changed, 1 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 63cce285..1a235d46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
- Freeware/doujin
- Animated
- Show comparable CERO ratings on /r+/edit input field
+ - Allow search queries with only one character
2.3 - 2009-04-01
- No page reload needed when changing rlist status from vn page
diff --git a/lib/VNDB/DB/Releases.pm b/lib/VNDB/DB/Releases.pm
index d6510322..bc64b880 100644
--- a/lib/VNDB/DB/Releases.pm
+++ b/lib/VNDB/DB/Releases.pm
@@ -49,7 +49,6 @@ sub dbReleaseGet {
if($o{search}) {
for (split /[ -,._]/, $o{search}) {
s/%//g;
- next if length($_) < 2;
if(/^\d+$/ && gtintype($_)) {
push @where, 'rr.gtin = ?', $_;
} else {
diff --git a/lib/VNDB/DB/VN.pm b/lib/VNDB/DB/VN.pm
index dcd1d06a..54e2f510 100644
--- a/lib/VNDB/DB/VN.pm
+++ b/lib/VNDB/DB/VN.pm
@@ -55,7 +55,6 @@ sub dbVNGet {
);
for (split /[ -,._]/, $o{search}) {
s/%//g;
- next if length($_) < 2;
if(/^\d+$/ && gtintype($_)) {
push @w, 'irr.gtin = ?', $_;
} else {