Skip to content

No reason for ъ/Ъ/ь/Ь to be in Bulgarian-specific array #190

@brandonkelly

Description

@brandonkelly

Stringy::langSpecificCharsArray() defines ASCII counterparts for the following Bulgarian characters: ъ, Ъ, ь, and Ь

However none of those characters have any alternatives in Stringy::charsArray(), which means they will be untouched by Stringy::toAscii() unless $language is set to 'bg'.

As there are no other ASCII equivalents for these characters, I think they should be defined in charsArray() instead.

echo Stringy::create('ъ')->toAscii();
// outputs: 'ъ'
// expected: 'a'

echo Stringy::create('ъ')->toAscii('bg');
// outputs: 'a' (as expected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions