Rudy Gestede snatched an injury-time equaliser after Michael Keane had given Leicester the 72nd-minute advantage. But Foxes manager Pearson claimed his side deserved all three points on a night when leaders Cardiff again showed their nerves.

Pearson said: “We deserved to win. We were much the better side and that was a bit cruel on the players. That late goal summed up our recent run.

“Cardiff looked dangerous from set plays but they didn’t hurt us too much. I remain confident that we can finish in the top six.”

Cardiff boss Malky Mackay said: “We showed a never-say-die attitude and I was pleased with that. In terms of chances created we were disappointing in the first half but not in terms of possession.

“Leicester got men behind the ball and it was difficult to break them down. We are still picking up points and that’s important at this stage of the season.”