diff --git a/modules/ext.scribunto.errors.js b/modules/ext.scribunto.errors.js index 12a9bcc3..afb83e58 100644 --- a/modules/ext.scribunto.errors.js +++ b/modules/ext.scribunto.errors.js @@ -5,11 +5,7 @@ let popup; $( '.scribunto-error' ).each( ( index, span ) => { - let matches = regex.exec( span.className ); - if ( matches === null ) { - // T375539: backward-compatibility with old cached HTML - matches = regex.exec( span.id ); - } + const matches = regex.exec( span.className ); if ( matches === null ) { mw.log( 'mw.scribunto.errors: regex mismatch!' ); return;