Skip to content

Commit 5ba5f8b

Browse files
authored
Add a missing 0
1 parent 924ec1e commit 5ba5f8b

File tree

1 file changed

+1
-1
lines changed
  • 5-regular-expressions/09-regexp-groups/1-find-webcolor-3-or-6

1 file changed

+1
-1
lines changed

5-regular-expressions/09-regexp-groups/1-find-webcolor-3-or-6/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let reg = /your regexp/g;
88

99
let str = "color: #3f3; background-color: #AA00ef; and: #abcd";
1010

11-
alert( str.match(reg) ); // #3f3 #AA0ef
11+
alert( str.match(reg) ); // #3f3 #AA00ef
1212
```
1313

1414
P.S. This should be exactly 3 or 6 hex digits: values like `#abcd` should not match.

0 commit comments

Comments
 (0)