mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-15 08:08:58 -06:00
update: markdown helper
- adopt the string functions like - str_contains, str_starts_with, str_ends_with - available in PHP 8.
This commit is contained in:
@@ -829,7 +829,7 @@ class Markdown
|
||||
$alignment = 'left';
|
||||
}
|
||||
|
||||
if (\substr($dividerCell, -1) === ':') {
|
||||
if (\str_ends_with($dividerCell, ':')) {
|
||||
$alignment = $alignment === 'left' ? 'center' : 'right';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user