File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ impl TranslatorBuilder {
59
59
/// an expression that will only ever match valid UTF-8 (otherwise, the
60
60
/// translator will return an error).
61
61
///
62
- /// Note that currently, even when invalid UTF-8 is banned, the translator
63
- /// will permit a negated ASCII word boundary (i.e., `(?-u:\B)`) even
64
- /// though it can actually match at invalid UTF-8 boundaries. This bug
65
- /// will be fixed on the next semver release .
62
+ /// Perhaps surprisingly, when invalid UTF-8 isn't allowed, a negated ASCII
63
+ /// word boundary (uttered as `(?-u:\B)` in the concrete syntax) will cause
64
+ /// the parser to return an error. Namely, a negated ASCII word boundary
65
+ /// can result in matching positions that aren't valid UTF-8 boundaries .
66
66
pub fn allow_invalid_utf8 (
67
67
& mut self ,
68
68
yes : bool ,
Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ impl ParserBuilder {
88
88
/// an expression that will only ever match valid UTF-8 (otherwise, the
89
89
/// parser will return an error).
90
90
///
91
- /// Note that currently, even when invalid UTF-8 is banned, the parser
92
- /// will permit a negated ASCII word boundary (i.e., `(?-u:\B)`) even
93
- /// though it can actually match at invalid UTF-8 boundaries. This bug
94
- /// will be fixed on the next semver release .
91
+ /// Perhaps surprisingly, when invalid UTF-8 isn't allowed, a negated ASCII
92
+ /// word boundary (uttered as `(?-u:\B)` in the concrete syntax) will cause
93
+ /// the parser to return an error. Namely, a negated ASCII word boundary
94
+ /// can result in matching positions that aren't valid UTF-8 boundaries .
95
95
pub fn allow_invalid_utf8 ( & mut self , yes : bool ) -> & mut ParserBuilder {
96
96
self . hir . allow_invalid_utf8 ( yes) ;
97
97
self
You can’t perform that action at this time.
0 commit comments