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

feat: apex audit #82

Merged
merged 11 commits into from
Jan 17, 2024
Merged

feat: apex audit #82

merged 11 commits into from
Jan 17, 2024

Conversation

ekremney
Copy link
Member

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

Copy link

This PR will trigger a minor release when merged.

Copy link
Member

@solaris007 solaris007 left a comment

Choose a reason for hiding this comment

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

just minor

}
}

export function toggleWWW(baseUrl) {
Copy link
Member

Choose a reason for hiding this comment

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

could be replaced with:

Suggested change
export function toggleWWW(baseUrl) {
export function toggleWWW(baseUrl) {
return baseUrl.replace(/^(https:\/\/)(www\.)?/, (match, p1, p2) => `${p1}${p2 ? '' : 'www.'}`);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

this is very elegant but I think the current version is easier to read than trying to understand what's going on with the anonymous function there

src/apex/handler.js Show resolved Hide resolved
@ekremney ekremney merged commit 2e79a37 into main Jan 17, 2024
3 checks passed
@ekremney ekremney deleted the apex-audit branch January 17, 2024 16:19
solaris007 pushed a commit that referenced this pull request Jan 17, 2024
# [1.6.0](v1.5.12...v1.6.0) (2024-01-17)

### Features

* apex audit ([#82](#82)) ([2e79a37](2e79a37))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants