text utils for RTL

This commit is contained in:
Pete Matsyburka
2024-01-15 01:45:26 +02:00
parent 98f5bba832
commit f1ebd8f912
5 changed files with 26 additions and 29 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<style>
</style>
</head>
<body dir="<%= yield&.match?(/[\p{Hebrew}\p{Arabic}]/) ? 'rtl' : 'auto' %>">
<body dir="<%= yield&.match?(TextUtils::RTL_REGEXP) ? 'rtl' : 'auto' %>">
<%= yield %>
<%= render partial: 'shared/mailer_attribution' %>
</body>