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:
parent
aa90288c20
commit
77e5d8713b
1 changed files with 97 additions and 15 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue