1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

Added 'd' flag to parser filter.

This commit is contained in:
Cameron 2019-08-10 14:39:20 -07:00
parent b705e17815
commit 1fb0c3138d

View File

@ -5201,6 +5201,11 @@ return;
return preg_replace('/[^\w]/',"",$text);
}
if($type === 'd') // digits only.
{
return preg_replace('/[^\d]/',"",$text);
}
if($type === 'wd') // words and digits only.
{
return preg_replace('/[^\w\d]/',"",$text);