Skip to content

Commit

Permalink
Correct to not expect { after \item but only after \begin and `…
Browse files Browse the repository at this point in the history
…\end`
  • Loading branch information
cdesaintguilhem committed Oct 13, 2024
1 parent 6e5ce6c commit 791c7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regexes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ lazy_static! {
pub static ref RE_ITEM_SHARED_LINE: Regex =
Regex::new(r"(?P<prev>\S.*?)(?P<env>\\item)").unwrap();
pub static ref RE_ENV_ITEM_SHARED_LINE: Regex =
Regex::new(r"(?P<prev>\S.*?)(?P<env>(\\begin|\\end|\\item)\{.*)")
Regex::new(r"(?P<prev>\S.*?)(?P<env>(\\begin\{|\\end\{|\\item ).*)")
.unwrap();
}

0 comments on commit 791c7f1

Please sign in to comment.