Overview
Comment:Fix match of emails using LIKE
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: a82834776fb8c992d63bd56954174d061927807b26c12a0f5f004aa803f7d8b6
User & Date: bohwaz on 2021-08-15 14:20:57
Other Links: manifest | tags
Context
2021-09-14
22:26
Fix Markdown footnotes bug in some rare cases check-in: 06d4888d3d user: bohwaz tags: trunk, stable
2021-08-15
14:20
Fix match of emails using LIKE check-in: a82834776f user: bohwaz tags: trunk, stable
12:37
Rename year export title Fix [77df95c877f5fcfdc2e0d7c679ad72265af03b46] check-in: 642f78a7f1 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Utils.php from [87963c7e33] to [5a3cd2f106].

920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
    static public function unicodeCaseFold(?string $str): string
    {
        if (null === $str || trim($str) === '') {
            return '';
        }

        if (!isset(self::$transliterator) && function_exists('transliterator_create')) {
            self::$transliterator = \Transliterator::create('Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower();');
        }

        if (isset(self::$transliterator)) {
            return self::$transliterator->transliterate($str);
        }

        return strtoupper(self::transliterateToAscii($str));







|







920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
    static public function unicodeCaseFold(?string $str): string
    {
        if (null === $str || trim($str) === '') {
            return '';
        }

        if (!isset(self::$transliterator) && function_exists('transliterator_create')) {
            self::$transliterator = \Transliterator::create('Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; Lower();');
        }

        if (isset(self::$transliterator)) {
            return self::$transliterator->transliterate($str);
        }

        return strtoupper(self::transliterateToAscii($str));