Fix Waypoint: Find White Space Explaination

Changed text description to make it clear that `\s` is used to find all types of whitespace characters, not just `" "`.
Closes #2838
pull/3603/head
Logan Tegman 2015-10-05 22:50:09 -07:00
parent ab204c654e
commit 91708a3316
1 changed files with 3 additions and 2 deletions

View File

@ -1081,10 +1081,11 @@
"title": "Find White Space with Regular Expressions",
"difficulty":"9.986",
"description":[
"We can also use selectors like <code>\\s</code> to find spaces in a string.",
"We can also use selectors like <code>\\s</code> to find white space in a string.",
"The white space characters are <code>\" \"</code> (space), <code>\\r</code> (carriage return), <code>\\n</code> (newline), <code>\\t</code> (tab), <code>\\f</code> (form feed).",
"It is used like this:",
"<code>/\\s+/g</code>",
"Select all the spaces in the sentence string."
"Select all the white space characters in the sentence string."
],
"tests":[
"assert(test === 7, 'Your RegEx should have found seven spaces in the <code>testString</code>.');",