diff options
Diffstat (limited to 'android')
| -rw-r--r-- | android/translations-converter/src/normalize.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/android/translations-converter/src/normalize.rs b/android/translations-converter/src/normalize.rs index 4896e6d25c..b1a1d6a1d2 100644 --- a/android/translations-converter/src/normalize.rs +++ b/android/translations-converter/src/normalize.rs @@ -38,7 +38,6 @@ mod gettext { use crate::gettext::MsgString; lazy_static! { - static ref APOSTROPHE_VARIATION: Regex = Regex::new("’").unwrap(); static ref ESCAPED_SINGLE_QUOTES: Regex = Regex::new(r"\\'").unwrap(); static ref ESCAPED_DOUBLE_QUOTES: Regex = Regex::new(r#"\\""#).unwrap(); static ref PARAMETERS: Regex = Regex::new(r"%\([^)]*\)").unwrap(); @@ -46,10 +45,8 @@ mod gettext { impl Normalize for MsgString { fn normalize(&self) -> String { - // Use a single common apostrophe character - let string = APOSTROPHE_VARIATION.replace_all(self, "'"); // Mark where parameters are positioned, removing the parameter name - let string = PARAMETERS.replace_all(&string, "%"); + let string = PARAMETERS.replace_all(self, "%"); // Remove escaped single-quotes let string = ESCAPED_SINGLE_QUOTES.replace_all(&string, r"'"); // Remove escaped double-quotes |
