diff --git "a/include/class-mw\\TitlePartCapitalized.php" "b/include/class-mw\\TitlePartCapitalized.php" index 913aee9..968a2d3 100644 --- "a/include/class-mw\\TitlePartCapitalized.php" +++ "b/include/class-mw\\TitlePartCapitalized.php" @@ -1,40 +1,46 @@ . # MediaWiki namespace mw; /** * A string part of a wikilink, a namespace, etc. * - * The first character is always capitalized. + * The first character can be capitalized. */ class TitlePartCapitalized extends TitlePart { + /** + * @TODO Just set ucfirst only if wiki is configured to do it + */ public static function normalize( $s ) { $s = ucfirst( $s ); return parent::normalize( $s ); } + /** + * @deprecated + */ public function getRegexFirstCaseInsensitive( $first_case_group_name = null, $delimiter = null ) { return \regex\Generic::firstCaseInsensitive( - $this->getRegex( $delimiter ), + parent::getRegex( $delimiter ), $first_case_group_name ); } }