Skip to content

Commit

Permalink
🐛 Fix code samples for EmailAddress.Companion.PATTERN (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
LVMVRQUXL committed Mar 31, 2024
1 parent 4d4fea9 commit 73090a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class EmailAddressCompanionJavaSample {
void patternSample() {
final String pattern = EmailAddress.PATTERN;
System.out.println(pattern); // ^\S+@\S+\.\S+$
}
} // END

void fromStringOrNullSample() {
final Object value = "[email protected]";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal object EmailAddressCompanionKotlinSample {
fun patternSample() {
val pattern: String = EmailAddress.PATTERN
println(pattern) // ^\S+@\S+\.\S+$
}
} // END

fun fromStringOrNullSample() {
val value: Any = "[email protected]"
Expand Down

0 comments on commit 73090a0

Please sign in to comment.