Skip to content

Commit 0aae147

Browse files
authored
Merge pull request #1 from mathiasbynens/patch-1
Clarify that `\R` matches UTS#18 definition of line boundaries
2 parents 4456edd + 7ca394c commit 0aae147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Buffer boundaries are similar to the `^` and `$` anchors, except that they are n
202202

203203
**Prior Art:** Perl, PCRE, Boost.Regex, Oniguruma, ICU, Glib/GRegex ([feature comparison](https://rbuckton.github.io/regexp-features/features/line-endings-escape.html))
204204

205-
- `\R` — Matches any line ending character sequence. Equivalent to: `(?>\r\n?|[\x0A-\x0C\x85\u{2028}\u{2029}])` (see [Atomic Groups](#atomic-groups))
205+
- `\R` — Matches any [line ending character sequence per UTS#18](https://unicode.org/reports/tr18/#Line_Boundaries). Equivalent to: `(?>\r\n?|[\x0A-\x0C\x85\u{2028}\u{2029}])` (see [Atomic Groups](#atomic-groups))
206206

207207
> NOTE: Requires the `u` flag, as `\R` is currently just an escape for `R` without the `u` flag.
208208
@@ -449,4 +449,4 @@ The following is a high-level list of tasks to progress through each stage of th
449449
[Implementation2]: #todo
450450
[Ecma262PullRequest]: #todo
451451
[Definitive]: #definitive-syntax
452-
[Proposed]: #proposed-syntax
452+
[Proposed]: #proposed-syntax

0 commit comments

Comments
 (0)