dash in the middle of a tag isn't special, allow it to be accelerated

This commit is contained in:
Shish 2018-06-20 02:40:52 +01:00
parent adaca87ca1
commit 60c16a9139

View File

@ -163,7 +163,7 @@ class Image {
$yays = 0;
$nays = 0;
foreach($tags as $tag) {
if(!preg_match("/^-?[a-zA-Z0-9_]+$/", $tag)) {
if(!preg_match("/^-?[a-zA-Z0-9_-]+$/", $tag)) {
return false;
}
if($tag[0] == "-") $nays++;