From 0307fcb9a40d3779e8a391c5af9fdb1b201806ea Mon Sep 17 00:00:00 2001 From: YRFT Date: Sat, 29 Feb 2020 12:09:02 +0800 Subject: [PATCH] Fix typo --- .../09-regexp-quantifiers/2-find-html-colors-6hex/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/solution.md b/9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/solution.md index b9e1f85a..afee89c5 100644 --- a/9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/solution.md +++ b/9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/solution.md @@ -17,7 +17,7 @@ alert( str.match(regexp) ); // #121212,#AA00ef The problem is that it finds the color in longer sequences: ```js run -alert( "#12345678".match( /#[a-f0-9]{6}/gi ) ) // #12345678 +alert( "#12345678".match( /#[a-f0-9]{6}/gi ) ) // #123456 ``` To fix that, we can add `pattern:\b` to the end: