mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
fix: replace mb_strlen/mb_substr with strlen/substr — mbstring not available on prod
This commit is contained in:
@@ -185,7 +185,7 @@ class Parsedown
|
||||
|
||||
while (($beforeTab = strstr($line, "\t", true)) !== false)
|
||||
{
|
||||
$shortage = 4 - mb_strlen($beforeTab, 'utf-8') % 4;
|
||||
$shortage = 4 - strlen($beforeTab) % 4;
|
||||
|
||||
$line = $beforeTab
|
||||
. str_repeat(' ', $shortage)
|
||||
|
||||
Reference in New Issue
Block a user