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

This commit is contained in:
Jose Diaz-Gonzalez committed 2016-03-13 06:46:10 -04:00
1 parent 0616e77584
commit 091489b503
1 file changed
+2 -2
+2 -2
View File
@@ -264,9 +264,9 @@
}; };
Array.prototype.forEach.call(blockquotes, function (el, i) { 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'); 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'); addClass(el, 'not-yet-released');
} }
}); });