summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-07-13 12:45:54 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-07-13 12:45:54 +0000
commit94e9da6f6c654f45bc7efb7a4e6591c64f0553c5 (patch)
tree224c2739c6ae20cc72714139be5cd6f81745bb41 /data
parent892f6a866c149b3460d8c45a03706659d269129b (diff)
Zero-padded VNDBIDs shouldn't match
git-svn-id: svn://vndb.org/vndb@68 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'data')
-rw-r--r--data/tpl/defs.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/tpl/defs.pl b/data/tpl/defs.pl
index 47364193..039c6507 100644
--- a/data/tpl/defs.pl
+++ b/data/tpl/defs.pl
@@ -168,8 +168,8 @@ sub summary { # cmd, len, def
if(!$as && s/(http|https):\/\/(.+[0-9a-zA-Z=\/])/<a href="$1:\/\/$2" rel="nofollow">link<\/a>/) {
$l = 4;
} elsif(!$as) {
- s/^(.*[^\w]|)([tdvpr][0-9]+)\.([0-9]+)([^\w].*|)$/$1<a href="\/$2.$3">$2.$3<\/a>$4/ ||
- s/^(.*[^\w]|)([tduvpr][0-9]+)([^\w].*|)$/$1<a href="\/$2">$2<\/a>$3/;
+ s/^(.*[^\w]|)([tdvpr][1-9][0-9]*)\.([1-9][0-9]*)([^\w].*|)$/$1<a href="\/$2.$3">$2.$3<\/a>$4/ ||
+ s/^(.*[^\w]|)([tduvpr][1-9][0-9]*)([^\w].*|)$/$1<a href="\/$2">$2<\/a>$3/;
}
while(s/\[\/url\]/<\/a>/i) {
$l -= 6;