fix: typo

This commit is contained in:
LeviDing 2022-08-05 19:35:01 +08:00 committed by GitHub
parent 7000ede297
commit b6939271e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ Let's use it to look for prices in the format "currency, followed by a digit":
```js run ```js run
let regexp = /\p{Sc}\d/gu; let regexp = /\p{Sc}\d/gu;
let str = `Prices: $2, €1, ¥9`; let str = `Prices: $2, €1, ¥9`;
alert( str.match(regexp) ); // $2,€1,¥9 alert( str.match(regexp) ); // $2,€1,¥9
``` ```