Merge pull request #2575 from joaquinelio/patch-13

typo
This commit is contained in:
Ilya Kantor 2021-04-17 19:53:00 +03:00 committed by GitHub
commit 3d8ab89ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ alert( str.match(/^\d/g) ); // 1
That's because by default a caret `pattern:^` only matches at the beginning of the text, and in the multiline mode -- at the start of any line. That's because by default a caret `pattern:^` only matches at the beginning of the text, and in the multiline mode -- at the start of any line.
```smart ```smart
"Start of a line" formally means "immediately after a line break": the test `pattern:^` in multiline mode matches at all positions preceeded by a newline character `\n`. "Start of a line" formally means "immediately after a line break": the test `pattern:^` in multiline mode matches at all positions preceded by a newline character `\n`.
And at the text start. And at the text start.
``` ```