Skip to content

Commit

Permalink
meta: avoid warning when html title is an array
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Sep 23, 2024
1 parent 2dc7825 commit bbde39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/meta/meta-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default {

getMeta: function(meta) {

if (meta.title && meta.title.toLowerCase().indexOf('wordpress.com') == -1) {
if (!/wordpress\.com/i.test(meta.title)) {
// Aparently, WordPress.com is using title field incorrectly.
return {
title: meta.title
Expand Down

0 comments on commit bbde39f

Please sign in to comment.