diff --git a/js/lib/ext.Cite.js b/js/lib/ext.Cite.js index b49b088dc..3b3b81835 100644 --- a/js/lib/ext.Cite.js +++ b/js/lib/ext.Cite.js @@ -345,7 +345,7 @@ References.prototype.handleReferences = function ( manager, pipelineOpts, refsTo var t = chunk[i]; if (t.constructor === SelfclosingTagTk && t.name === 'meta' && - t.getAttribute('typeof').match(/mw:Ext\/Ref\/Content/)) + /^mw:Ext\/Ref\/Content$/.test(t.getAttribute('typeof'))) { res.push(t); }