diff --git a/scripts/tags/tabs.js b/scripts/tags/tabs.js
index 575d0ac..3e3c18a 100644
--- a/scripts/tags/tabs.js
+++ b/scripts/tags/tabs.js
@@ -59,7 +59,7 @@ module.exports = function(hexo) {
active = ' class="is-active"';
hidden = '';
}
- if (match[3] === 'active' && match[3].substring(1) !== '') icon = ``;
+ if (match[3] !== undefined && match[3].substring(1) !== '') icon = ``;
if (contentString.match(/^ {4}|^\t{1}/gm) !== null && contentString.match(/^ {4}|^\t{1}/gm).length === contentString.split('\n').length) contentString = contentString.replace(/^ {4}|^\t{1}/g, '').replace(/\n {4}|\n\t{1}/g, '\n');
tabsEl += `