Skip to content

Commit

Permalink
docs: clarify documentation for LineStart and LineEnd regex instr…
Browse files Browse the repository at this point in the history
…uctions.
  • Loading branch information
plusvic committed Feb 25, 2025
1 parent 8b01882 commit 37aa561
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/re/thompson/instr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,15 @@ pub enum Instr<'a> {
/// Matches the start of the scanned data or the start of a line (^ in
/// multi-line mode). Specifically, this matches at the start of the
/// data, or at the position immediately before a \n character, a \r
/// character or a \r\n sequence.
/// character, or sequences \r\n and \n\r. It won't match in the middle
/// of \r\n or \n\r.
LineStart,

/// Matches the end of the scanned data or the end of a line ($ in
/// multi-line mode). Specifically, this matches at the end of the
/// data, or at the position immediately after a \n character, a \r
/// character or a \r\n sequence.
/// character, or sequences \r\n and \n\r. It won't match in the middle
/// of \r\n or \n\r.
LineEnd,

/// Matches a word boundary (i.e: characters that are not part of the
Expand Down

0 comments on commit 37aa561

Please sign in to comment.