mirror of https://github.com/jitsi/jitsi-meet
It crashes on Android. Well, on the JSC version React Native uses on Android. While we could use this fallback only on Android, we have decided to use it on all mobile platforms for consistency.pull/4827/head jitsi-meet_4070
parent
ae30d39b4d
commit
191e530071
@ -0,0 +1,14 @@ |
||||
// @flow
|
||||
|
||||
import * as unorm from 'unorm'; |
||||
|
||||
/** |
||||
* Applies NFKC normalization to the given text. |
||||
* 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 normalizeNFKC(text: string) { |
||||
return unorm.nfkc(text); |
||||
} |
@ -0,0 +1,11 @@ |
||||
// @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'); |
||||
} |
Loading…
Reference in new issue