mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 07:45:35 +01:00
Fix ' char in data
This commit is contained in:
@@ -11,7 +11,11 @@ where
|
||||
}
|
||||
|
||||
pub fn remove_wrong_chars(s: &str) -> String {
|
||||
s.replace(';', "").replace('\n', " ").replace('ё', "е").replace("\\\"", "\"")
|
||||
s.replace(';', "")
|
||||
.replace('\n', " ")
|
||||
.replace('ё', "е")
|
||||
.replace("\\\"", "\"")
|
||||
.replace("\\'", "'")
|
||||
}
|
||||
|
||||
pub fn parse_lang(s: &str) -> String {
|
||||
@@ -24,4 +28,5 @@ pub fn fix_annotation_text(text: &str) -> String {
|
||||
.replace("[/b]", "")
|
||||
.replace("[hr]", "")
|
||||
.replace("\\\"", "\"")
|
||||
.replace("\\'", "'")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user