Closed ssteeltm closed 2 months ago
nice work and deff needed for those long URIs however we have a PHP function for this already in the functions.php
function truncate($text, $chars)
{
if (strlen($text) <= $chars) {
return $text;
}
$text = $text . " ";
$text = substr($text, 0, $chars);
$lastSpacePos = strrpos($text, ' ');
if ($lastSpacePos !== false) {
$text = substr($text, 0, $lastSpacePos);
}
return $text . "...";
}
Please update your pull request to use the function, and thank you for your commitment to ITFlow
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
awesome looks good reeling in
limits long uri that may break lines in table
example:![image](https://github.com/itflow-org/itflow/assets/17302120/e1285bf3-1a7d-4f66-bef7-08086e17168c)
it put ellipsis on the displayed long uri