1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-10 14:44:04 +01:00

Miglioria conteggio caratteri

This commit is contained in:
Pek5892 2024-05-03 17:23:20 +02:00
parent 8c20974e5b
commit 137a5e6ffe

View File

@ -56,6 +56,10 @@ class Autofill
$count += substr_count($text, PHP_EOL);
$count += substr_count($text, '<br>');
// Ricerca dei caratteri a capo
preg_match_all("/(\r\n|\r|\n)/", $text, $matches);
$count += count($matches[0]);
if ($small) {
$count = $count / 3;
}