Replace use of startsWith by indexOf, for compatibility with IE

This commit is contained in:
Nicolas Setton
2018-06-29 15:30:24 -04:00
parent a5dfe8f511
commit adbe60e7ec

View File

@@ -23,7 +23,7 @@ function process_check_output(editors, output_area, output, status, completed, m
var error_found = false;
var match_found = l.match(/^([a-zA-Z._0-9-]+):(\d+):(\d+):(.+)$/)
if (match_found) {
if (match_found[4].startsWith(" info:")) {
if (match_found[4].indexOf(" info:") == 0) {
var klass = "output_msg_info";
}
else {