fixed bug with number only tags breaking js
This commit is contained in:
@@ -78,12 +78,12 @@
|
||||
}
|
||||
|
||||
Danbooru.Blacklist.posts = function() {
|
||||
return $("article.post-preview");
|
||||
return $(".post-preview");
|
||||
}
|
||||
|
||||
Danbooru.Blacklist.post_match = function(post, blacklist) {
|
||||
var $post = $(post);
|
||||
var tags = $post.data("tags").match(/\S+/g) || [];
|
||||
var tags = String($post.data("tags")).match(/\S+/g) || [];
|
||||
tags.push("rating:" + $post.data("rating"));
|
||||
tags.push("uploader:" + $post.data("uploader"));
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
var old_tags = $post.data("tags");
|
||||
|
||||
$.each(commands, function(i, x) {
|
||||
var array = $post.data("tags").match(/\S+/g);
|
||||
var array = String($post.data("tags")).match(/\S+/g);
|
||||
$post.data("tags", Danbooru.TagScript.process(array, x).join(" "));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user