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

Api: Filter Service 'İ' character problem #15204

Open
selcukkutuk opened this issue Mar 29, 2024 · 0 comments
Open

Api: Filter Service 'İ' character problem #15204

selcukkutuk opened this issue Mar 29, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@selcukkutuk
Copy link

Describe the bug

When searching in the filter service, first the removeAccents method and then the toLocaleLowerCase method are applied to the searched expression. The letter 'İ' is subjected to an incorrect transformation here.

let searchPhrase = 'İSTANBUL'; -> 'ıstanbul'
let searchedPhrase= 'istanbul'; -> 'istanbul'

let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);

Environment

"primeng": "17.3.2",
"@angular/core": "~17.0.9",

Reproducer

No response

Angular version

17.0.9

PrimeNG version

17.3.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.9.0

Browser(s)

Google Chrome 123.0.6312.59

Steps to reproduce the behavior

filterService.filter()

Expected behavior

When searching for the expression İSTANBUL with the entry istanbul, the result must be found successfully.

@selcukkutuk selcukkutuk added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant