snipdoc 0.1.12

Code Documentation Made Simple
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(windows)]
pub const REGEX_REPLACE_LINE_ENDING: &str = r"\\r\\n";

#[cfg(not(windows))]
pub const REGEX_REPLACE_LINE_ENDING: &str = r"\\n";

pub const REDACT_NEW_LINE: &str = "[NEW_LINE]";
#[must_use]
pub fn all() -> Vec<(&'static str, &'static str)> {
    vec![(REGEX_REPLACE_LINE_ENDING, REDACT_NEW_LINE)]
}