uploads: fix rating:S not being recognized by rating validator.

This commit is contained in:
evazion
2017-11-26 11:54:13 -06:00
parent aeb24b6253
commit 8a0f600ac2

View File

@@ -33,7 +33,7 @@
error_messages.push("Must choose file or specify source");
}
if (!$("#upload_rating_s")[0].checked && !$("#upload_rating_q")[0].checked && !$("#upload_rating_e")[0].checked &&
($("#upload_tag_string").val().search(/\brating:[sqe]/) < 0)) {
($("#upload_tag_string").val().search(/\brating:[sqe]/i) < 0)) {
error_messages.push("Must specify a rating");
}
if (error_messages.length === 0) {