Skip to content

Commit baefa41

Browse files
authored
Merge pull request #82 from fredeil/repo-assist/fix-issue-80-dart-format-eee8951073a3c5e2
[Repo Assist] fix: auto-format Dart files to fix CI formatting failures
2 parents 0e72c4e + 4628696 commit baefa41

2 files changed

Lines changed: 326 additions & 144 deletions

File tree

lib/email_validator.dart

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ class EmailValidator {
119119

120120
_index++;
121121

122-
while (
123-
_index < text.length && _isDomain(text[_index], allowInternational)) {
122+
while (_index < text.length &&
123+
_isDomain(text[_index], allowInternational)) {
124124
_index++;
125125
}
126126

@@ -135,7 +135,10 @@ class EmailValidator {
135135
// Skips checking of domain if domainType is numeric and returns false
136136
// Otherwise, return true
137137
static bool _skipDomain(
138-
String text, bool allowTopLevelDomains, bool allowInternational) {
138+
String text,
139+
bool allowTopLevelDomains,
140+
bool allowInternational,
141+
) {
139142
if (!_skipSubDomain(text, allowInternational)) {
140143
return false;
141144
}
@@ -328,8 +331,11 @@ class EmailValidator {
328331
/// If [allowInternational] is `true`, then the validator
329332
/// will use the newer International Email standards for validating
330333
/// the email address.
331-
static bool validate(String email,
332-
[bool allowTopLevelDomains = false, bool allowInternational = true]) {
334+
static bool validate(
335+
String email, [
336+
bool allowTopLevelDomains = false,
337+
bool allowInternational = true,
338+
]) {
333339
_index = 0;
334340

335341
if (email.isEmpty || email.length >= 255) {

0 commit comments

Comments
 (0)