Merge pull request #946 from javascript-tutorial/lex111-patch-2

regexp-character-classes: wording
This commit is contained in:
Ilya Kantor 2019-04-30 22:06:08 +02:00 committed by GitHub
commit 5e82fe26f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ Another example: a regexp `pattern:\b\d\d\b` looks for standalone two-digit numb
alert( "1 23 456 78".match(/\b\d\d\b/g) ); // 23,78
```
```warn header="Word boundary doesn't work for non-English alphabets"
```warn header="Word boundary doesn't work for non-Latin alphabets"
The word boundary check `\b` tests for a boundary between `\w` and something else. But `\w` means an English letter (or a digit or an underscore), so the test won't work for other characters (like cyrillic or hieroglyphs).
```