From 9c70ad100e2943fb94239f299f8b94dd935965fd Mon Sep 17 00:00:00 2001 From: Diego + Renan Date: Fri, 23 Mar 2012 23:06:25 +0400 Subject: [PATCH] [Mezuro] Bugfix: Results wouldn't show if there was only one decimal space --- plugins/mezuro/views/content_viewer/_module_result.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/views/content_viewer/_module_result.rhtml b/plugins/mezuro/views/content_viewer/_module_result.rhtml index 6d3530b..b8ac675 100644 --- a/plugins/mezuro/views/content_viewer/_module_result.rhtml +++ b/plugins/mezuro/views/content_viewer/_module_result.rhtml @@ -19,7 +19,7 @@ <% range = metric_result.range %> <%= metric_result.metric.name %> - <%= metric_result.value.slice(/[0-9]+\.[0-9]{2}/) %> + <%= metric_result.value.slice(/[0-9]+\.[0-9]{1,2}/) %> <%= metric_result.weight %> <% if range.nil? %> @@ -34,7 +34,7 @@ <%= _('Grade:') %> - <%= module_result.grade.slice(/[0-9]+\.[0-9]{2}/) %> + <%= module_result.grade.slice(/[0-9]+\.[0-9]{1,2}/) %> -- libgit2 0.21.2