Confirm the Ending [ bug Wrong answer taken as correct ]

Tell us what’s happening:
Hello everyone!

I think I have found a bug in the tests.
I was able to pass the challenge with the code provided below, although it clearly does not meet the matching criteria.
I also tried this code in the beta version, and it was successful as well.

I thought it was worth pointing out.

Best regards.


My code so far

function confirmEnding(str, target) {
  // "Never give up and good luck will find you."
  // -- Falcor
  return str[str.length-target.length] === target[0];

confirmEnding("Bastian", "ikz");

Link to the challenge:

I’m not sure how often campers will come up with a solution like that, but you can certainly create a GitHub Issue suggesting a test improvement.

Thanks for the close attention to quality and detail.

Thank you for your answer.
I will see to it.