fix: catch regex FormatException and show a corresponding error message (#573)

* add error message

* restore and reformat

* update localization and comments

* chore: reformat files
This commit is contained in:
Sun Jiao 2023-11-06 15:19:23 +08:00 • committed by GitHub
commit 77e5d8713b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -961,6 +961,36 @@ class AppFlowyEditorLocalizations {
);
}
/// `Regex Error`
String get regexError {
return Intl.message(
'Regex Error',
name: 'regexError',
desc: '',
args: [],
);
}
/// `No result`
String get noFindResult {
return Intl.message(
'No result',
name: 'noFindResult',
desc: '',
args: [],
);
}
/// `Enter a pattern`
String get emptySearchBoxHint {
return Intl.message(
'Enter a pattern',
name: 'emptySearchBoxHint',
desc: '',
args: [],
);
}
/// `Upload Image`
String get uploadImage {
return Intl.message(