mirror of
https://github.com/pcvolkmer/bzkf-rwdp-check.git
synced 2025-07-06 18:02:54 +00:00
feat: also remove windows like line breaks
This commit is contained in:
@ -126,7 +126,7 @@ impl Meldung {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn sanitized_xml_string(&self) -> String {
|
pub fn sanitized_xml_string(&self) -> String {
|
||||||
let re = Regex::new(r"\n\s*").unwrap();
|
let re = Regex::new(r"[\r|\n]+\s*").unwrap();
|
||||||
let content = re.replace_all(&self.raw_value, "").trim().to_string();
|
let content = re.replace_all(&self.raw_value, "").trim().to_string();
|
||||||
|
|
||||||
let re = Regex::new(r"<[^>]+/>").unwrap();
|
let re = Regex::new(r"<[^>]+/>").unwrap();
|
||||||
|
Reference in New Issue
Block a user