1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//---------------------------------------------------------------------------//
// Copyright (c) 2017-2024 Ismael Gutiérrez González. All rights reserved.
//
// This file is part of the Rusted PackFile Manager (RPFM) project,
// which can be found here: https://github.com/Frodo45127/rpfm.
//
// This file is licensed under the MIT license, which can be found here:
// https://github.com/Frodo45127/rpfm/blob/master/LICENSE.
//---------------------------------------------------------------------------//

//! This crate contains certain functionality extensions that, for one reason or another, didn't fit in the main RPFM lib crate.

use fancy_regex::Regex;
use lazy_static::lazy_static;

pub mod dependencies;
pub mod diagnostics;
pub mod optimizer;
pub mod search;
pub mod translator;

lazy_static! {

    /// Regex to find if a path belongs to a db table.
    pub static ref REGEX_INVALID_ESCAPES: Regex = Regex::new(r"(?<!\\)\\n|(?<!\\)\\t").unwrap();
}

const VERSION: &str = env!("CARGO_PKG_VERSION");