From 5ff0a30177a3ccf4dfdfd1cb3536e049762cb4d4 Mon Sep 17 00:00:00 2001 From: Osvaldo Dias dos Santos Date: Sat, 11 Mar 2023 22:54:21 +0100 Subject: [PATCH] Update "Anchors: string start ^ and end $" article --- 9-regular-expressions/04-regexp-anchors/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/04-regexp-anchors/article.md b/9-regular-expressions/04-regexp-anchors/article.md index c34999ee5..63e4efa93 100644 --- a/9-regular-expressions/04-regexp-anchors/article.md +++ b/9-regular-expressions/04-regexp-anchors/article.md @@ -16,7 +16,7 @@ The pattern `pattern:^Mary` means: "string start and then Mary". Similar to this, we can test if the string ends with `snow` using `pattern:snow$`: ```js run -let str1 = "it's fleece was white as snow"; +let str1 = "its fleece was white as snow"; alert( /snow$/.test(str1) ); // true ```