jenkins-bot has submitted this change and it was merged.

Change subject: (Bug 50394) Fixed bad regexp
......................................................................


(Bug 50394) Fixed bad regexp

* There is another unrelated issue on that page ==> It has
  a couple instances of <ref>text<ref> which slurps the entire
  rest of the page into a 10K string (on which the regexp failed).

Change-Id: Ia4c498b28042de5bfe9b0945c0efaa8c6cb81ea0
---
M js/lib/ext.Cite.js
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  GWicke: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/js/lib/ext.Cite.js b/js/lib/ext.Cite.js
index ebb611a..82dfdbc 100644
--- a/js/lib/ext.Cite.js
+++ b/js/lib/ext.Cite.js
@@ -32,7 +32,7 @@
        // requires addressing.
        //
        // Strip all leading white-space
-       var wsMatch = content.match(/^(\s*)((?:.|\n)*)$/),
+       var wsMatch = content.match(/^(\s*)([^]*)$/),
                leadingWS = wsMatch[1];
 
        // Update content to normalized form

-- 
To view, visit https://gerrit.wikimedia.org/r/71119
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia4c498b28042de5bfe9b0945c0efaa8c6cb81ea0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to