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:
parent
8c20974e5b
commit
137a5e6ffe
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user