Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Yuji Sugiura <6259812+leaysgur@users.noreply.github.com>
  • Loading branch information
rzvxa and leaysgur authored Aug 29, 2024
1 parent bdcbebc commit facde65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_regular_expression/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ impl Display for BoundaryAssertionKind {
match self {
Self::Start => write!(f, "^"),
Self::End => write!(f, "$"),
Self::Boundary => write!(f, "\\b"),
Self::NegativeBoundary => write!(f, "\\B"),
Self::Boundary => write!(f, r"\b"),
Self::NegativeBoundary => write!(f, r"\B"),
}
}
}
Expand Down Expand Up @@ -287,7 +287,7 @@ impl Display for IndexedReference {

impl<'a> Display for NamedReference<'a> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "\\k{}", self.name)
write!(f, r"\k<{}>", self.name)
}
}

Expand Down

0 comments on commit facde65

Please sign in to comment.