Skip to content

Commit 11763d1

Browse files
author
Eugene Tupikov
committed
Fixed the pattern for processing multiline text
1 parent 14bda98 commit 11763d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/TableRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function renderRowContent($index = null, $item = null)
146146

147147
if (!empty($hiddenInputs)) {
148148
$hiddenInputs = implode("\n", $hiddenInputs);
149-
$cells[0] = preg_replace('/^(<td[^>]+>)(.*)(<\/td>)$/', '${1}' . $hiddenInputs . '$2$3', $cells[0]);
149+
$cells[0] = preg_replace('/^(<td[^>]+>)(.*)(<\/td>)$/s', '${1}' . $hiddenInputs . '$2$3', $cells[0]);
150150
}
151151

152152
$content = Html::tag('tr', implode("\n", $cells), [

0 commit comments

Comments
 (0)