Add a missing 0
This commit is contained in:
parent
924ec1e19f
commit
5ba5f8b79b
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ let reg = /your regexp/g;
|
||||||
|
|
||||||
let str = "color: #3f3; background-color: #AA00ef; and: #abcd";
|
let str = "color: #3f3; background-color: #AA00ef; and: #abcd";
|
||||||
|
|
||||||
alert( str.match(reg) ); // #3f3 #AA0ef
|
alert( str.match(reg) ); // #3f3 #AA00ef
|
||||||
```
|
```
|
||||||
|
|
||||||
P.S. This should be exactly 3 or 6 hex digits: values like `#abcd` should not match.
|
P.S. This should be exactly 3 or 6 hex digits: values like `#abcd` should not match.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue