Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code cleanup #240

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Code cleanup #240

merged 1 commit into from
Oct 30, 2023

Conversation

altro3
Copy link
Contributor

@altro3 altro3 commented Oct 29, 2023

Remove semicolons from groovy files.
Move tests from javax to jakarta.
Remove unused imports.

Move tests from javax to jakarta.
Remove unused imports.
* <p>
* A host string must be a domain string, an IPv4 address string, or "[", followed by an IPv6 address string,
* followed by "]".
*/
private static final Pattern DOMAIN_PATTERN = Pattern.compile(
DOMAIN + "|\\[" + IP_V6_DOMAIN + "\\]", CASE_INSENSITIVE
DOMAIN + "|\\[" + IP_V6_DOMAIN + "]", CASE_INSENSITIVE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was the regex incorrect?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just redundant escape ] symbol:
изображение

);

/**
* Regular expression for the domain part of an email address (everything after '@').
*/
private static final Pattern EMAIL_DOMAIN_PATTERN = Pattern.compile(
DOMAIN + "|\\[" + IP_DOMAIN + "\\]|" + "\\[IPv6:" + IP_V6_DOMAIN + "\\]", CASE_INSENSITIVE
DOMAIN + "|\\[" + IP_DOMAIN + "]|" + "\\[IPv6:" + IP_V6_DOMAIN + "]", CASE_INSENSITIVE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was the regex incorrect?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just redundant escape ] symbol:
изображение

@dstepanov dstepanov merged commit 8a3d230 into micronaut-projects:master Oct 30, 2023
6 checks passed
@dstepanov
Copy link
Contributor

Looks fine thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants