-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: apex audit #82
Conversation
This PR will trigger a minor release when merged. |
There was a problem hiding this 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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be replaced with:
export function toggleWWW(baseUrl) { | |
export function toggleWWW(baseUrl) { | |
return baseUrl.replace(/^(https:\/\/)(www\.)?/, (match, p1, p2) => `${p1}${p2 ? '' : 'www.'}`); | |
} |
There was a problem hiding this comment.
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
# [1.6.0](v1.5.12...v1.6.0) (2024-01-17) ### Features * apex audit ([#82](#82)) ([2e79a37](2e79a37))
Please ensure your pull request adheres to the following guidelines:
Related Issues
Thanks for contributing!