diff options
author | Yorhel <git@yorhel.nl> | 2018-08-01 17:44:20 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2018-08-01 17:44:22 +0200 |
commit | 900014f99dcfcdd84247070fa6f09bb0b7d855e0 (patch) | |
tree | 74786a55c7aca25e1d7f536d653f93f3bd927a66 | |
parent | e56db50017f1dd3d93f50448bb0f0abe3055d13a (diff) |
Also normalize Turkish ı in VN search
This also handles the uppercase İ, as that is already converted to
lowercase ı in an earlier step.
-rw-r--r-- | lib/VNDBUtil.pm | 1 |
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; |