From 9169b089999c867ff8aac5af883fdf6b0e92524b Mon Sep 17 00:00:00 2001 From: Toks Date: Sun, 21 Jul 2013 12:22:10 -0400 Subject: [PATCH] fixes #1871 --- app/views/users/custom_style.css.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/custom_style.css.erb b/app/views/users/custom_style.css.erb index c2879128d..9c3d36e13 100644 --- a/app/views/users/custom_style.css.erb +++ b/app/views/users/custom_style.css.erb @@ -1 +1 @@ -<%= CurrentUser.user.custom_style.gsub(/(?:!important)?\s*;?\s*\}/, "!important;}").html_safe %> \ No newline at end of file +<%= CurrentUser.user.custom_style.gsub(/(\S)\s*(?:!important)?\s*(;|})/, "\\1!important\\2").html_safe %> \ No newline at end of file