mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
98a1bb09c0
Let's keep the ugly regexp and the comments about why we do this in a single place. This is mostly without behavior changes, with three exceptions: * ve.dm.MWImageModel#attachScalable now passes a title with spaces instead of underscores to the Scalable (this doesn't matter because it's normalized to use spaces later anyway). * ve.dm.MWImageNode#getFilename now returns a title with spaces instead of underscores. This is used in some API queries and when rendering thumbnails for missing files, and this format is actually more correct for both of these. * ve.dm.MWTemplateModel now URI-decodes the template title. This actually fixes a bug where trying to edit a template transclusion whose title contains a '?' would throw an exception about invalid title. Also, clarify that the return value of ve.dm.MWImageModel#getFilename and ve.dm.MWImageNode#getFilename is different :( Change-Id: I8e09015cea82308017ed925ec755b7231518126e |
||
---|---|---|
.. | ||
ve.dm.MWAlienMetaItem.js | ||
ve.dm.MWCategoryMetaItem.js | ||
ve.dm.MWDefaultSortMetaItem.js | ||
ve.dm.MWDisplayTitleMetaItem.js | ||
ve.dm.MWFlaggedMetaItem.js | ||
ve.dm.MWHiddenCategoryMetaItem.js | ||
ve.dm.MWIndexMetaItem.js | ||
ve.dm.MWLanguageMetaItem.js | ||
ve.dm.MWNewSectionEditMetaItem.js | ||
ve.dm.MWNoContentConvertMetaItem.js | ||
ve.dm.MWNoEditSectionMetaItem.js | ||
ve.dm.MWNoGalleryMetaItem.js | ||
ve.dm.MWNoTitleConvertMetaItem.js | ||
ve.dm.MWRedirectMetaItem.js | ||
ve.dm.MWStaticRedirectMetaItem.js | ||
ve.dm.MWTOCMetaItem.js |