-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix misplaced '@' in RTL post meta. (#4531)
Co-authored-by: Joel <[email protected]> Co-authored-by: Hailey <[email protected]>
- Loading branch information
1 parent
ea37298
commit ea7afec
Showing
4 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters