Skip to content

Commit

Permalink
Add missing characters for validator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vabiel committed Aug 5, 2024
1 parent cf51332 commit 95b9823
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.6.18

* [L10n] `from_xml` added missing characters for validator checking.

## 1.6.17

[L10n] `import_xml`
Expand Down
4 changes: 2 additions & 2 deletions lib/src/l10n/validators/require_latin_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import 'package:alex/src/l10n/validators/l10n_validator.dart';

class RequireLatinValidator implements L10nValidator {
static late final _pattern = RegExp(
r'^[a-z0-9\s​​!¡<=>?¿()*+,\-–’^_`·./:;@"#$%&\[\\\]{|}~'
r"'àāáåäãăâậąấạảắầặằẫẩæßçčćďđèéěêëęẽềếểẹễệẻğïíîìịıỉĩİłľňñńòóöôőỏõổỗờồợởọơớốộøřŕšśșşťțţúùüůűủừửữứụựưýỹỳỷżźž]+$",
r'^[a-z0-9\s​​!¡<=>?¿()*+,\-–’^_`·./:;@"#$%&\[\\\]{|}~'
r"'àāáåäãăâậąấạảắầặằẫẩæßçčćďđèéěêëęẽềếểẹễệẻğïíîìịıỉĩİłľňñńòóöôőỏõổỗờồợởọơớốộøřŕšśșşťțţúùüůűủừửữứûụựưýỹỳỷżźž]+$",
unicode: true,
caseSensitive: false,
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ homepage: https://github.com/innim/
repository: https://github.com/Innim/alex
issue_tracker: https://github.com/Innim/alex/issues

version: 1.6.17
version: 1.6.18

environment:
sdk: ">=2.19.6 <4.0.0"
Expand Down
6 changes: 4 additions & 2 deletions test/src/l10n/validators/require_latin_validator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ void main() {
expect(
validator.validate(
"- Hello, John! How are you? Listen: I have... So; ¿Quiere ¡Recordatorio "
"Start date – End date. cancel·lar",
"Start date – End date. cancel·lar "
"The details yet—you can fill them in later.",
),
true,
);
Expand All @@ -93,7 +94,8 @@ void main() {
'Educaţie podľa Nezahŕňať değiştirildi hesaplandı işlemler İçecek '
'sơ lại Tiền Đến Chuyển nhận đổi mỗi Xuất khoản Chọn Số Đồng dễ '
'được dịch của được giờ gửi một sắm lần chỉ dữ mục từ thức bằng '
'đẹp đặt viện dưới khỏe khẩu quỹ vẫn nghĩa nhở sẽ tự thẻ Kỳ tỷ',
'đẹp đặt viện dưới khỏe khẩu quỹ vẫn nghĩa nhở sẽ tự thẻ Kỳ tỷ '
'Êtes-vous sûr de vouloir supprimer ce paiement régulier',
),
true,
);
Expand Down

0 comments on commit 95b9823

Please sign in to comment.