Find Whitespace with Regular Expressions, problem in console

Hi Everyone,
I think there is some problem in dummy console, because for this test when I am putting more space in between words and running the code, still its showing output as 7.

Your code so far

// Setup
var testString = "How many spaces are there     in this sentence?";

// Only change code below this line.

var expression = /\s+/g;  // Change this line

// Only change code above this line

// This code counts the matches of expression in testString
var spaceCount = testString.match(expression).length;

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/find-whitespace-with-regular-expressions