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:
parent
b705e17815
commit
1fb0c3138d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user