mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-12 09:18:59 +00:00
render.article: Remove text inside brackets along with the brackets
Change-Id: I544bf0daf935b9ddb5bb64c4eae1fd96baef2c44
This commit is contained in:
parent
5a7393407c
commit
b587fcda20
|
@ -89,7 +89,8 @@
|
|||
page = re.query.pages[ re.query.pageids[ 0 ] ],
|
||||
$contentbox = $( '<div>' )
|
||||
.addClass( 'mwe-popups-extract' )
|
||||
.text( page.extract ),
|
||||
.text( page.extract.replace( /\(.*?\)\s+/, '' ) ),
|
||||
// Remove text in brackets along with the brackets
|
||||
thumbnail = page.thumbnail,
|
||||
tall = thumbnail && thumbnail.height > thumbnail.width,
|
||||
$thumbnail = article.createThumbnail( thumbnail, tall ),
|
||||
|
|
Loading…
Reference in a new issue