Add bidi strip setting and use in os dialogs
This commit is contained in:
parent
a710f09977
commit
07195f4096
5 changed files with 32 additions and 15 deletions
|
@ -109,7 +109,8 @@ export const ANY_UNICODE_DIR_CONTROL_CHAR_REGEX = new RegExp(
|
|||
POP_DIRECTIONAL_FORMATTING,
|
||||
LTR_OVERRIDE,
|
||||
RTL_OVERRIDE,
|
||||
].join('|')
|
||||
].join('|'),
|
||||
'g'
|
||||
);
|
||||
|
||||
export function hasAnyUnicodeDirControlChars(input: string): boolean {
|
||||
|
@ -216,3 +217,7 @@ export function bidiIsolate(text: string): string {
|
|||
}
|
||||
return _bidiIsolate(text);
|
||||
}
|
||||
|
||||
export function bidiStrip(text: string): string {
|
||||
return text.replace(ANY_UNICODE_DIR_CONTROL_CHAR_REGEX, '');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue