Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавить в функцию filter_data #4

Open
kivasRu opened this issue Jan 14, 2022 · 1 comment
Open

Добавить в функцию filter_data #4

kivasRu opened this issue Jan 14, 2022 · 1 comment

Comments

@kivasRu
Copy link

kivasRu commented Jan 14, 2022

Здравствуйте.
Предлагаю добавить в функцию filter_data,
Помимо таких фильтров:

alpha — Возвращает только буквенные символы латинского алфавита из указанного значения.
alpha_num — Возвращает только буквы и цифры. Используется латинский алфивит.
num — Возвращает только цифры.

Пример новых фильтров,
alpha_num_rus - Возвращает только буквы и цифры. Используется латиница и кириллица.
remove_emoji - Удаляет все эмодзи из строки. (У modx при определенных условиях есть проблемы с эмодзи )

@sergant210
Copy link
Owner

Надо подумать над возможностью динамического добавления пользовательских фильтров через плагин.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants