Use .toLowerCase() so casing does not need to be checked

This commit is contained in:
Jose Diaz-Gonzalez
2016-03-13 06:46:10 -04:00
parent 0616e77584
commit 091489b503

View File

@@ -264,9 +264,9 @@
};
Array.prototype.forEach.call(blockquotes, function (el, i) {
if (el.innerHTML.indexOf('New as of') !== -1) {
if (el.innerHTML.toLowerCase().indexOf('new as of') !== -1) {
addClass(el, 'new-as-of');
} else if (el.innerHTML.indexOf('not yet released') !== -1) {
} else if (el.innerHTML.toLowerCase().indexOf('not yet released') !== -1) {
addClass(el, 'not-yet-released');
}
});