Fix typo
This commit is contained in:
parent
405150f1f2
commit
0307fcb9a4
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ alert( str.match(regexp) ); // #121212,#AA00ef
|
||||||
The problem is that it finds the color in longer sequences:
|
The problem is that it finds the color in longer sequences:
|
||||||
|
|
||||||
```js run
|
```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:
|
To fix that, we can add `pattern:\b` to the end:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue