This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty strip_semicolon modifier plugin
*
* Type: modifier<br>
* Name: strip<br>
* Purpose: Replace strings with trailing semicolon with blank string
* @author Collin Lee
* @version 1.0
* @param string
* @return string
*/
function smarty_modifier_strip_semicolon($text)
{
return preg_replace('/[:][\s]*$/', '', trim($text));
}
?>