From 8b082995b53b5f7a82702162bfc49cf06e419dd9 Mon Sep 17 00:00:00 2001 From: Chayanon Tonsai Date: Wed, 23 Oct 2019 21:32:17 +0700 Subject: [PATCH] Change test method from string.test(regex) to regex.test(string) (#37458) --- .../match-anything-with-wildcard-period.english.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-anything-with-wildcard-period.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-anything-with-wildcard-period.english.md index 41849d0bac..f7c1f45aca 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-anything-with-wildcard-period.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-anything-with-wildcard-period.english.md @@ -14,8 +14,8 @@ The wildcard character . will match any one character. The wildcard let humStr = "I'll hum a song"; let hugStr = "Bear hug"; let huRegex = /hu./; -humStr.test(huRegex); // Returns true -hugStr.test(huRegex); // Returns true +huRegex.test(humStr); // Returns true +huRegex.test(hugStr); // Returns true ```