Merge pull request #2250 from odsantos/fix-regexp-char-class-typo

Fix typo.
This commit is contained in:
Ilya Kantor 2020-11-10 12:02:52 +03:00 committed by GitHub
commit 27f6935594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ alert( "CS-4".match(regexp) ); // CS-4
alert( "CS 4".match(regexp) ); // CS 4 (space is also a character)
```
Please note that a dot means "any character", but not the "absense of a character". There must be a character to match it:
Please note that a dot means "any character", but not the "absence of a character". There must be a character to match it:
```js run
alert( "CS4".match(/CS.4/) ); // null, no match because there's no character for the dot