Skip to content

Exclude trailing parenthesis from URL #19

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noah-st-amand
Copy link

I found that when a link was enclosed in parentheses, e.g., (https://google.com), the opening parenthesis was correctly excluded from the URL, but the closing one was included. This is fixed here using the same pattern that excludes closing periods, but there may be a better way (either earlier in the regex, or maybe the exclusions should be in a foreach loop).

I found that when a link was enclosed in parentheses, e.g., (https://google.com), the opening parenthesis was correctly excluded from the URL, but the closing one was included. This is fixed here using the same pattern that excludes closing periods, but there may be a better way (either earlier in the regex, or maybe the exclusions should be in a foreach loop).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant