Skip to content

Commit

Permalink
Fixed punctuation in path type tags (#2701)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Mar 21, 2024
1 parent db2b79b commit 9a96013
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderer/components/TypeTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ const TagRenderer = memo(({ tag, longText }: TagRendererProps) => {
tt = value;
if (longText) {
text = value;
direction = 'rtl';
if (!/^\p{P}|\p{P}$/u.test(value)) {
// punctuation will be messed up in rtl
direction = 'rtl';
}
} else {
const maxLength = 14;
text = (
Expand Down

0 comments on commit 9a96013

Please sign in to comment.