fix: incorrect character trimming for tab IDs

This commit is contained in:
alistair3149 2021-10-23 00:29:38 -04:00
parent 3358e2e49c
commit 5e4471d23f
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -19,7 +19,7 @@ function initTabber( tabber ) {
tab = document.createElement( 'a' );
// Prepend with tab so that it does not collide with article heading
let hash = 'tab-' + mw.util.escapeIdForAttribute( tabPanel.title ).slice( 0, -1 );
let hash = 'tab-' + mw.util.escapeIdForAttribute( tabPanel.title );
// If MD5 Hash is enabled
if ( isMD5 ) {