Add exceptions in mw.Title where mb_strtoupper doesn't match String.toUpperCase
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.Title.js
index 9203e5e..0e2af50 100644 (file)
                        ) {
                                return this.title;
                        }
-                       return this.title[ 0 ].toUpperCase() + this.title.slice( 1 );
+                       // PHP's strtoupper differs from String.toUpperCase in a number of cases
+                       // Bug: T147646
+                       return mw.Title.phpCharToUpper( this.title[ 0 ] ) + this.title.slice( 1 );
                },
 
                /**