Skip to content

Commit

Permalink
Updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Nov 4, 2013
1 parent ac50fbb commit f17cb1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions scripts/build.php
Expand Up @@ -534,9 +534,12 @@ protected static function getNamedCaptures($string, $regexps)
$filepath = __DIR__ . '/../www/configure.html';
file_put_contents(
$filepath,
preg_replace(
preg_replace_callback(
'#(?<=var xml = ).*?(?=;\\n\\n)#',
addcslashes(json_encode($xml), '$\\'),
function () use ($xml)
{
return json_encode($xml);
},
preg_replace(
'#(<table[^>]*>).*</table>#s',
"\$1\n\t\t" . str_replace("\n", "\n\t\t", $rows) . "\n\t</table>",
Expand Down

0 comments on commit f17cb1a

Please sign in to comment.