Skip to content
Snippets Groups Projects
Commit 4b39898e authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Fix color render

parent 7b0de3af
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ class ColorsClient
msg = message.html
msg = msg.replace /(?:^|\s|\n)(#[A-Fa-f0-9]{3}([A-Fa-f0-9]{3})?)\b/g, (match, completeColor) ->
return match.replace completeColor, "<div class=\"message-color\"><div class=\"message-color-sample\" style=\"background-color: #{completeColor}\"></div>#{completeColor.toUpperCase()}</div>"
return match.replace completeColor, "<div class=\"message-color\"><div class=\"message-color-sample\" style=\"background-color:#{completeColor}\"></div>#{completeColor.toUpperCase()}</div>"
message.html = msg
return message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment