render.article: Remove text inside brackets along with the brackets

Change-Id: I544bf0daf935b9ddb5bb64c4eae1fd96baef2c44
This commit is contained in:
Prateek Saxena 2014-05-10 17:46:04 +05:30
parent 5a7393407c
commit b587fcda20

View file

@ -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 ),