mirror of
https://github.com/denisidoro/navi
synced 2024-11-29 15:00:28 +00:00
Add error info for invalid regex.
This commit is contained in:
parent
d371300fac
commit
0785f9cf30
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ pub const DELIMITER: &str = r" ⠀";
|
|||
|
||||
lazy_static! {
|
||||
pub static ref WIDTHS: (usize, usize) = get_widths();
|
||||
pub static ref NEWLINE_REGEX: Regex = Regex::new(r"\\\s+").unwrap();
|
||||
pub static ref NEWLINE_REGEX: Regex = Regex::new(r"\\\s+").expect("Invalid regex");
|
||||
}
|
||||
|
||||
fn get_widths() -> (usize, usize) {
|
||||
|
|
Loading…
Reference in a new issue