Fix #2894: Use [[:space:]] instead of \s in regexes.
This commit is contained in:
@@ -1,7 +1 @@
|
||||
<% CurrentUser.user.custom_style.to_s.split(/\r\n|\r|\n/).each do |line| %>
|
||||
<% if line =~ /^@import/ %>
|
||||
<%= raw(line) %>
|
||||
<% else %>
|
||||
<%= raw(line.gsub(/(\S)\s*(?:!important)?\s*(;|})/, "\\1 !important\\2")) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= raw CurrentUser.user.presenter.custom_css %>
|
||||
|
||||
Reference in New Issue
Block a user