summaryrefslogtreecommitdiff
path: root/lib/VNDBUtil.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-10-01 19:19:20 +0200
committerYorhel <git@yorhel.nl>2015-10-01 19:19:20 +0200
commit423a37af953817b59879f2d3013a44a54006ec3b (patch)
tree27c246b66a60eb1dde5ef36d9217ab556c46526b /lib/VNDBUtil.pm
parentb5c3aa020836541ef2e94812ab83e73de364abe4 (diff)
VN search: Add some more quote characters + & to normalization
As suggested by https://vndb.org/t2520.168
Diffstat (limited to 'lib/VNDBUtil.pm')
-rw-r--r--lib/VNDBUtil.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDBUtil.pm b/lib/VNDBUtil.pm
index 7bec05b2..d65c2c3f 100644
--- a/lib/VNDBUtil.pm
+++ b/lib/VNDBUtil.pm
@@ -195,8 +195,9 @@ sub normalize {
s/\pM//g;
# remove some characters that have no significance when searching
use utf8;
- tr/\r\n\t ,_\-.~:[]()%+!?&#$"'`♥★☆♪†「」『』【】・”//d;
+ tr/\r\n\t ,_\-.~:[]()%+!?#$"'`♥★☆♪†「」『』【】・‟”‛’‘‚„«‹»›//d;
tr/@/a/;
+ s/&/and/;
# remove commonly used release titles ("x Edition" and "x Version")
# this saves some space and speeds up the search
s/(?: