mirror of
https://github.com/e107inc/e107.git
synced 2025-06-07 11:28:22 +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);
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user