Skip to content

Commit

Permalink
Remove no-op regex escapes (#52)
Browse files Browse the repository at this point in the history
This just removes the unnecessary / invalid escapes.

Addresses #50
  • Loading branch information
GuiAmPm authored Sep 5, 2023
1 parent 3800483 commit 214a395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compose/comment_strip_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{borrow::Cow, str::Lines};
use regex::Regex;

static RE_COMMENT: once_cell::sync::Lazy<Regex> =
once_cell::sync::Lazy::new(|| Regex::new(r"(\/\/|\/\*|\*\/)").unwrap());
once_cell::sync::Lazy::new(|| Regex::new(r"(//|/\*|\*/)").unwrap());

pub struct CommentReplaceIter<'a> {
lines: &'a mut Lines<'a>,
Expand Down

0 comments on commit 214a395

Please sign in to comment.