mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Strip data-gen in parserTests
Change-Id: I1d3629b4d5487ff8735444069a4004fb74f926ef
This commit is contained in:
parent
235739e253
commit
2faba528aa
|
@ -338,7 +338,7 @@ ParserTests.prototype.normalizeHTML = function (source) {
|
|||
ParserTests.prototype.normalizeOut = function ( out ) {
|
||||
// TODO: Do not strip newlines in pre and nowiki blocks!
|
||||
return out
|
||||
.replace(/<span data-mw-gc=[^>]*>((?:[^<]+|(?!<\/span).)*)<\/span>/g,
|
||||
.replace(/<span data-gen=[^>]*>((?:[^<]+|(?!<\/span).)*)<\/span>/g,
|
||||
'$1')
|
||||
.replace(/[\r\n]| (data-mw|typeof|resource|rel|prefix|about|rev|datatype|inlist|property|vocab|content)="[^">]*"/g, '')
|
||||
.replace(/<!--.*?-->\n?/gm, '')
|
||||
|
|
Loading…
Reference in a new issue