summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/script.js b/data/script.js
index 28deb494..cde63441 100644
--- a/data/script.js
+++ b/data/script.js
@@ -2667,7 +2667,7 @@ if(byId('votesel')) {
if(s == 10 && !confirm(mt('_vnpage_uopt_10vote')))
return;
if(s > 0 || s == -1)
- location.href = location.href.replace(/#.*/, '').replace(/\/chars/, '').replace(/\.[0-9]+/, '')+'/vote?formcode='+this.name+';v='+s;
+ location.href = location.href.replace(/#.*/, '').replace(/\/chars/, '').replace(/(v\d+)\.\d+/, '$1')+'/vote?formcode='+this.name+';v='+s;
};
}