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
This commit is contained in:
@ -1081,10 +1081,11 @@
|
|||||||
"title": "Find White Space with Regular Expressions",
|
"title": "Find White Space with Regular Expressions",
|
||||||
"difficulty":"9.986",
|
"difficulty":"9.986",
|
||||||
"description":[
|
"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:",
|
"It is used like this:",
|
||||||
"<code>/\\s+/g</code>",
|
"<code>/\\s+/g</code>",
|
||||||
"Select all the spaces in the sentence string."
|
"Select all the white space characters in the sentence string."
|
||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
"assert(test === 7, 'Your RegEx should have found seven spaces in the <code>testString</code>.');",
|
"assert(test === 7, 'Your RegEx should have found seven spaces in the <code>testString</code>.');",
|
||||||
|
Reference in New Issue
Block a user