I have the following code and I would like to make the function work on any URL containing "blog" instead of a specific URL. Please help me with the correct syntax, thanks.
window.setTimeout(function() {
if (window.location.pathname != '/home/legal-documentation' &&
window.location.pathname != '/home/blog/australian-business-news'
) {
erOpenLoginRegisterbox(jQuery);
}
return false;
}, 1000);