mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Added 'd' flag to parser filter.
This commit is contained in:
@@ -5201,6 +5201,11 @@ return;
|
|||||||
return preg_replace('/[^\w]/',"",$text);
|
return preg_replace('/[^\w]/',"",$text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($type === 'd') // digits only.
|
||||||
|
{
|
||||||
|
return preg_replace('/[^\d]/',"",$text);
|
||||||
|
}
|
||||||
|
|
||||||
if($type === 'wd') // words and digits only.
|
if($type === 'wd') // words and digits only.
|
||||||
{
|
{
|
||||||
return preg_replace('/[^\w\d]/',"",$text);
|
return preg_replace('/[^\w\d]/',"",$text);
|
||||||
|
Reference in New Issue
Block a user