From 091489b5033e10e632e2777e4c9f04887209fdc2 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 13 Mar 2016 06:46:10 -0400 Subject: [PATCH] Use `.toLowerCase()` so casing does not need to be checked --- docs/template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/template.html b/docs/template.html index e2d8c4344..e5ac87aec 100644 --- a/docs/template.html +++ b/docs/template.html @@ -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'); } });