GWicke has uploaded a new change for review.
https://gerrit.wikimedia.org/r/165767
Change subject: Fix style stripping by adding missing /g flag
......................................................................
Fix style stripping by adding missing /g flag
Change-Id: I6cd4b853638010d60809cecc87499113bd189d4c
---
M MathMathML.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math
refs/changes/67/165767/1
diff --git a/MathMathML.php b/MathMathML.php
index 0b39cfe..b7afae3 100644
--- a/MathMathML.php
+++ b/MathMathML.php
@@ -349,7 +349,7 @@
$style .= " ".$styles[1]; // merge styles
if ( $this->getMathStyle() === MW_MATHSTYLE_DISPLAY ) {
// TODO: Improve style cleaning
- $style = preg_replace(
'/margin\-(left|right)\:\s*\d+(\%|in|cm|mm|em|ex|pt|pc|px)\;|position:\s*absolute;\s*left:\s*0px;/',
'', $style );
+ $style = preg_replace(
'/margin\-(left|right)\:\s*\d+(\%|in|cm|mm|em|ex|pt|pc|px)\;|position:\s*absolute;\s*left:\s*0px;/g',
'', $style );
}
}
// TODO: Figure out if there is a way to construct
--
To view, visit https://gerrit.wikimedia.org/r/165767
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6cd4b853638010d60809cecc87499113bd189d4c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits