diff --git a/rslib/src/err.rs b/rslib/src/err.rs index 0849adb59..b0d24ebce 100644 --- a/rslib/src/err.rs +++ b/rslib/src/err.rs @@ -158,7 +158,7 @@ impl AnkiError { SearchErrorKind::InvalidPropOperator(ctx) => i18n .trn(TR::SearchInvalidPropOperator, tr_strs!["val"=>(ctx)]) .into(), - SearchErrorKind::Regex(text) => text.into(), + SearchErrorKind::Regex(text) => format!("
`{}`", text.replace('`', "'")).into(), SearchErrorKind::Other(Some(info)) => info.into(), SearchErrorKind::Other(None) => i18n.tr(TR::SearchInvalidOther), SearchErrorKind::InvalidNumber { provided, context } => i18n