generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Excluding modals from Active link check #1942
Merged
Merged
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c4c8034
Fix: Excluding modals from Active link check
31d3db6
Merge branch 'stage' into MWPW-143213
bandana147 f4f089d
Fix: removing pathname from check
3a798d2
Merge branch 'MWPW-143213' of github.com:bandana147/milo into MWPW-14…
b213f7b
Merge branch 'stage' into MWPW-143213
bandana147 18137cc
Fix: Change in check for url
d2a4a7f
Merge branch 'MWPW-143213' of github.com:bandana147/milo into MWPW-14…
5573b92
Merge branch 'stage' into MWPW-143213
bandana147 a4b6cec
Merge branch 'stage' into MWPW-143213
bandana147 b22874b
Merge branch 'stage' into MWPW-143213
bandana147 437e22a
Merge branch 'stage' into MWPW-143213
bandana147 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I just realized that there may be some potential for improvement for the regular expression here. Let's just use this page's URL as an example.
The issue is that
.
, which in regular expression terms translates to any character. Soregex.test('https://githubXcom/adobecom/milo/pull/1942/files');
would actually betrue
.One way to solve this would be to call an additional
.replaceAll('.', '\\.')
on the string. Another would be to replace the regular expression withThere 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.
@overmyheadandbody Thanks for the catch with
.
Will update the code as discussed.