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