7 lines
154 B
JavaScript
7 lines
154 B
JavaScript
export const correctTurkishCharacters = (text = '') =>
|
|
text
|
|
.replace(/İ/g, 'İ')
|
|
.replace(/i̇/g, 'i')
|
|
.replace(/\s+/g, ' ')
|
|
.trim();
|