add unit tests

This commit is contained in:
PacoX
2026-05-19 10:50:18 +02:00
parent 9331b02f94
commit 01d4f002f8
2 changed files with 97 additions and 3 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ class NotificationService {
AppLocalizations get _l10n => lookupAppLocalizations(_locale);
String _logSafe(String value) {
final sanitized = value.replaceAll(RegExp(r'[\x00-\x1F\x7F]'), ' ');
return Uri.encodeComponent(sanitized);
final sanitized = value.replaceAll(RegExp(r'[\x00-\x1F\x7F]'), ' ');
return Uri.encodeComponent(sanitized);
}
// Rate limiting to prevent notification storms