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

read time on arabic characters! #1694

Closed
peimn opened this Issue Jan 7, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@peimn

peimn commented Jan 7, 2018

~/core/View/BaseModifiers.php (L 1317)
str_word_count does not work for special characters like Arabic:

Fix:
$words = count(preg_split('/\s+/', strip_tags($value)));


Statamic 2.7.3
php 7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment