summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-01-04 07:01:09 +0000
committerGo MAEDA <maeda@farend.jp>2024-01-04 07:01:09 +0000
commitf7d2f9f00b27bc4117ed7dc2aeb1fad4c819a226 (patch)
tree3a1969c9ad6ca363bb25f9134b36e9d3289017b2 /app/helpers/application_helper.rb
parent1ab44859feac685719b1f8f4023fec6f89b78e08 (diff)
downloadredmine-f7d2f9f00b27bc4117ed7dc2aeb1fad4c819a226.tar.gz
redmine-f7d2f9f00b27bc4117ed7dc2aeb1fad4c819a226.zip
Support localized decimal separators for hours in the web UI (#21677).
Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22593 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index dcf1da35b..a82163b76 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -684,7 +684,7 @@ module ApplicationHelper
def html_hours(text)
text.gsub(
- %r{(\d+)([\.:])(\d+)},
+ %r{(\d+)([\.,:])(\d+)},
'<span class="hours hours-int">\1</span><span class="hours hours-dec">\2\3</span>'
).html_safe
end