summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-08-01 17:44:20 +0200
committerYorhel <git@yorhel.nl>2018-08-01 17:44:22 +0200
commit900014f99dcfcdd84247070fa6f09bb0b7d855e0 (patch)
tree74786a55c7aca25e1d7f536d653f93f3bd927a66 /lib
parente56db50017f1dd3d93f50448bb0f0abe3055d13a (diff)
Also normalize Turkish ı in VN search
This also handles the uppercase İ, as that is already converted to lowercase ı in an earlier step.
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDBUtil.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNDBUtil.pm b/lib/VNDBUtil.pm
index 1c0629e4..d59c82e2 100644
--- a/lib/VNDBUtil.pm
+++ b/lib/VNDBUtil.pm
@@ -57,6 +57,7 @@ sub normalize {
# remove some characters that have no significance when searching
tr/\r\n\t,_\-.~~〜∼ー῀:[]()%+!?#$"'`♥★☆♪†「」『』【】・‟”‛’‘‚„«‹»›//d;
tr/@/a/;
+ tr/ı/i/; # Turkish lowercase i
s/&/and/;
# Consider wo and o the same thing (when used as separate word)
s/(?:^| )o(?:$| )/wo/g;