text utils for RTL

This commit is contained in:
Pete Matsyburka committed 2024-01-15 02:22:53 +02:00
1 parent 98f5bba832
commit f1ebd8f912
5 files changed
+26 -29

No files matched your search

+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>