mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
Sanitize filesystem paths before emitting ParserTests.data.
Change-Id: Ic348aa040d3b0e64716a51f5681ef289842118f0
This commit is contained in:
parent
247314382f
commit
5cc82325c2
|
@ -83,6 +83,7 @@ class MathGenerateTests extends Maintenance
|
|||
$i = 0;
|
||||
foreach ( array_slice( $allEquations, $offset, $length, true ) as $input ) {
|
||||
$output = MathRenderer::renderMath( $input, array(), MW_MATH_PNG );
|
||||
$output = preg_replace( '#src="(.*?)/(([a-f]|\d)*).png"#', 'src="\2.png"', $output );
|
||||
$parserTests[] = array( (string)$input, $output );
|
||||
$i++;
|
||||
echo '.';
|
||||
|
|
Loading…
Reference in a new issue