$request = new Commit();
const moves = [];
...
moves.push(JSON.stringify(jsonmove));
...
const datamove = "[\n" + moves.join(",\n") + "\n]";
const moves = [];
...
moves.push(jsonmove);
...
const datamove = JSON.stringify(moves);
text-align-last: justify;
(в Сафари работать не будет) $url = '${1}"https://test.com"';
$test = preg_replace('~(<img[^>]+src=)"([^"]+?)"~', $url, $test);