Fix misplaced '@' in RTL post meta. (#4531)
Co-authored-by: Joel <joel.garplind+github@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const LEFT_TO_RIGHT_EMBEDDING = '\u202A'
|
||||
const POP_DIRECTIONAL_FORMATTING = '\u202C'
|
||||
|
||||
/*
|
||||
* Force LTR directionality in a string.
|
||||
* https://www.unicode.org/reports/tr9/#Directional_Formatting_Characters
|
||||
*/
|
||||
export function forceLTR(str: string) {
|
||||
return LEFT_TO_RIGHT_EMBEDDING + str + POP_DIRECTIONAL_FORMATTING
|
||||
}
|
||||
Reference in New Issue
Block a user