https://bugzilla.wikimedia.org/show_bug.cgi?id=30084

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[[/Subpage/]] links are     |Parser's stripSectionName
                   |wrongly parsed on auto edit |should get the same text as
                   |summaries                   |Linker::normalizeSubpageLin
                   |                            |k for a [[/Subpage/]] link
                   |                            |in the summary

--- Comment #2 from [email protected] ---
On current version of MW (downloaded from git), the text of the autosummary
produced by $wgParser->stripSectionName[1] is still inconsistent with the text
of the subpage links created by Linker::normalizeSubpageLink[2], because the
capturing group of the regex
/\[\[:?([^[]+)\|?\]\]/
matches "/Subpage/" in the text "[[/Subpage/]]".[3]

Maybe it should be changed to
/\[\[:?\/?([^\[]+?)\/?\|?\]\]/
per example at [4].

[1]
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/parser/Parser.php;h=0f22755e0921fa9ba38d9636999ef7b831dee816;hb=HEAD#l5675

[2]
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/Linker.php;h=05a9905669f95fcb573f851da6d58bad8a340161;hb=HEAD#l1471

[3] http://www.rubular.com/r/lVQGMcZKGA
[4] http://www.rubular.com/r/2ckz5UIDBb

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to