Invalid regular expression error preventing challenge pass?

I keep getting the error “invalid regular expression flag l”. I’m also completing all but the last part of the challenge (template strings were used). The output is supposedly correct but I still can’t pass.

My Code:


const result = {
  success: ["max-length", "no-amd", "prefer-arrow-functions"],
  failure: ["no-var", "var-on-top", "linebreak"],
  skipped: ["id-blacklist", "no-dup-keys"]
};
function makeList(arr) {
  "use strict";

  // change code below this line
  const resultDisplayArray = arr.map(s => `<li class="text-warning">${s}</li>`);
  // change code above this line

  return resultDisplayArray;
}

const resultDisplayArray = makeList(result.failure);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/create-strings-using-template-literals

this is a known issue. Just skip the exercise.
if you need more information, just search the forum for this topic.