Commit bc0bd870 by Czémán Arnold

dashboard: reduce regex

parent 986c3ad7
...@@ -203,7 +203,7 @@ function generateMessageFromLastActivity(){ ...@@ -203,7 +203,7 @@ function generateMessageFromLastActivity(){
var ac = $('div.activity').first(); var ac = $('div.activity').first();
var error = ac.children(".timeline-icon-failed").length; var error = ac.children(".timeline-icon-failed").length;
var sign = (error === 1) ? "❌ " : "✓ "; var sign = (error === 1) ? "❌ " : "✓ ";
var msg = ac.children("strong").text().replace(/\s\s+/g, " "); var msg = ac.children("strong").text().replace(/\s+/g, " ");
return sign + msg; return sign + msg;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment