mirror of
https://github.com/pcvolkmer/bzkf-rwdp-check.git
synced 2025-04-19 19:16:51 +00:00
feat: also remove windows like line breaks
This commit is contained in:
parent
07478cf6a3
commit
e1ca2d927a
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user