No support for non-Latin characters (such as Cyrillic)

Created on 28 June 2022, over 2 years ago
Updated 26 May 2023, over 1 year ago

If the tabs consist of characters that do not contain Latin characters, e.g. Cyrillic characters, the preg_replace('/[^a-z0-9_]+/', '_', strtolower($item->header) will only return '_'.

As a result, the tab does not work.

There is a solution for Cyrillic:
preg_replace('/[^а-яa-z0-9_]+/', '_', strtolower($item->header)

However, maybe there is a way to use transliteration functions?

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia kolotunbobo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024