jenkins-bot has submitted this change and it was merged.
Change subject: Match all characters when testing comments for JSON
......................................................................
Match all characters when testing comments for JSON
`.` doesn't match newline chars.
Bug: 54927
Change-Id: Ibe425c30dedbaf7a17502675861d49259f194d1c
---
M js/lib/mediawiki.DOMPostProcessor.js
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Subramanya Sastry: Looks good to me, approved
jenkins-bot: Verified
diff --git a/js/lib/mediawiki.DOMPostProcessor.js
b/js/lib/mediawiki.DOMPostProcessor.js
index 3c17ab3..f348f1e 100644
--- a/js/lib/mediawiki.DOMPostProcessor.js
+++ b/js/lib/mediawiki.DOMPostProcessor.js
@@ -92,7 +92,7 @@
function prepareDOM( node ) {
DU.loadDataParsoid( node );
- if ( DU.isComment( node ) && /^\{.*\}$/.test( node.data ) ) {
+ if ( DU.isComment( node ) && /^\{[^]+\}$/.test( node.data ) ) {
var data, type;
try {
--
To view, visit https://gerrit.wikimedia.org/r/90687
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibe425c30dedbaf7a17502675861d49259f194d1c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits