mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
- created `ClearableInpu`t component on web & native - added `ClearableInput` component to participants pane and used it for search in participants list - update `AddPeopleDialog` to use `ClearableInput`
23 lines
662 B
JavaScript
23 lines
662 B
JavaScript
// @flow
|
|
|
|
/**
|
|
* Applies NFKC normalization to the given text.
|
|
*
|
|
* @param {string} text - The text that needs to be normalized.
|
|
* @returns {string} - The normalized text.
|
|
*/
|
|
export function normalizeNFKC(text: string) {
|
|
return text.normalize('NFKC');
|
|
}
|
|
|
|
/**
|
|
* Replaces accent characters with english alphabet characters.
|
|
* NOTE: Here we use the unorm package because the JSC version in React Native for Android crashes.
|
|
*
|
|
* @param {string} text - The text that needs to be normalized.
|
|
* @returns {string} - The normalized text.
|
|
*/
|
|
export function normalizeAccents(text: string) {
|
|
return text.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
|
}
|